Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|opAmp.v_out|rootMeanSquare.mean.x",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|opAmp.v_out|rootMeanSquare.mean.x",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001539/0.001539, allocations: 115.5 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001775/0.001775, allocations: 214.8 kB / 19.41 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.425/1.425, allocations: 227.7 MB / 247.9 MB, free: 10.27 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 63.91 kB / 359.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.2498, allocations: 50.53 MB / 410.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.005831/0.2556, allocations: 4.494 MB / 414.7 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00274/0.2584, allocations: 1.277 MB / 416 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003748/0.2587, allocations: 12 kB / 416 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004967/0.2592, allocations: 146.7 kB / 416.2 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000513/0.2597, allocations: 214.2 kB / 416.4 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004968/0.2602, allocations: 211.6 kB / 416.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007926/0.261, allocations: 0.7708 MB / 417.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003543/0.2614, allocations: 194.6 kB / 417.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004176/0.2618, allocations: 294.9 kB / 417.8 MB, free: 9.824 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004104/0.2622, allocations: 330.5 kB / 418.2 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.77e-05/0.2623, allocations: 64 kB / 418.2 MB, free: 9.438 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001382/0.2624, allocations: 68 kB / 418.3 MB, free: 9.371 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001382/0.2626, allocations: 143.5 kB / 418.4 MB, free: 9.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003114/0.2629, allocations: 358.2 kB / 418.8 MB, free: 8.879 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000855/0.2637, allocations: 0.7506 MB / 419.5 MB, free: 8.129 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.2637, allocations: 4 kB / 419.5 MB, free: 8.125 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2637, allocations: 0 / 419.5 MB, free: 8.125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.2638, allocations: 0 / 419.5 MB, free: 8.125 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001817/0.2656, allocations: 0.9814 MB / 420.5 MB, free: 7.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.2656, allocations: 8.031 kB / 420.5 MB, free: 7.082 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003137/0.2659, allocations: 100.4 kB / 420.6 MB, free: 6.984 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005696/0.2665, allocations: 434 kB / 421 MB, free: 6.523 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.894e-05/0.2665, allocations: 45.69 kB / 421.1 MB, free: 6.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.333e-05/0.2666, allocations: 52.38 kB / 421.1 MB, free: 6.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001021/0.2676, allocations: 0.5456 MB / 421.7 MB, free: 5.871 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.111e-05/0.2677, allocations: 4 kB / 421.7 MB, free: 5.867 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.572e-05/0.2677, allocations: 24 kB / 421.7 MB, free: 5.844 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.286e-05/0.2677, allocations: 12 kB / 421.7 MB, free: 5.832 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009018/0.2686, allocations: 425 kB / 422.1 MB, free: 5.414 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003323/0.272, allocations: 1.821 MB / 424 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008478/0.2728, allocations: 0.4953 MB / 424.5 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001024/0.2738, allocations: 429 kB / 424.9 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.066e-05/0.2739, allocations: 4.328 kB / 424.9 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005557/0.2744, allocations: 298.2 kB / 425.2 MB, free: 2.207 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.584e-06/0.2744, allocations: 0 / 425.2 MB, free: 2.207 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.004043/0.2785, allocations: 1.298 MB / 426.5 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/0.2786, allocations: 243.3 kB / 426.7 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005669/0.2792, allocations: 433.9 kB / 427.1 MB, free: 160 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.271e-05/0.2792, allocations: 33.7 kB / 427.2 MB, free: 120 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002607/0.2795, allocations: 320.8 kB / 427.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001237/0.2796, allocations: 150.7 kB / 427.6 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001425/0.2798, allocations: 90.2 kB / 427.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.2799, allocations: 362.8 kB / 428.1 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003398/0.2803, allocations: 149 kB / 428.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004877/0.2808, allocations: 325.5 kB / 428.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007673/0.2815, allocations: 447.5 kB / 429 MB, free: 14.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.2815, allocations: 7.938 kB / 429 MB, free: 14.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001801/0.2833, allocations: 0.7678 MB / 429.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.2833, allocations: 11.94 kB / 429.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.789e-06/0.2834, allocations: 4 kB / 429.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007017/0.2841, allocations: 216.1 kB / 430 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002869/0.2843, allocations: 71.91 kB / 430 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005027/0.2894, allocations: 3.136 MB / 433.2 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005055/0.2899, allocations: 91.58 kB / 433.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.494e-05/0.2899, allocations: 24 kB / 433.3 MB, free: 9.707 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0002655/0.2902, allocations: 186.2 kB / 433.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.621e-05/0.2903, allocations: 59.61 kB / 433.5 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001099/0.2904, allocations: 56.91 kB / 433.6 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.2904, allocations: 4 kB / 433.6 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.2904, allocations: 4 kB / 433.6 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.2904, allocations: 3.984 kB / 433.6 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002338/0.2927, allocations: 1.266 MB / 434.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.2927, allocations: 0 / 434.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001707/0.2929, allocations: 35.92 kB / 434.9 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006004/0.2935, allocations: 212.6 kB / 435.1 MB, free: 7.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.495e-05/0.2935, allocations: 11.98 kB / 435.1 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004509/0.298, allocations: 3.051 MB / 438.2 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.298, allocations: 0 / 438.2 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002018/0.3, allocations: 0.9375 MB / 439.1 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001345/0.3002, allocations: 128.7 kB / 439.2 MB, free: 3.516 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.374e-05/0.3002, allocations: 12 kB / 439.2 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003566/0.3006, allocations: 44.03 kB / 439.3 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.46e-05/0.3007, allocations: 27.95 kB / 439.3 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.456e-05/0.3007, allocations: 15.98 kB / 439.3 MB, free: 3.418 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003555/0.3011, allocations: 311.1 kB / 439.6 MB, free: 3.121 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3011, allocations: 0 / 439.6 MB, free: 3.121 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006464/0.3017, allocations: 187.7 kB / 439.8 MB, free: 2.938 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (rootMeanSquare.mean.x) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001656/0.3019, allocations: 119.3 kB / 439.9 MB, free: 2.809 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001548/0.3034, allocations: 0.6541 MB / 440.6 MB, free: 2.141 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3034, allocations: 4.188 kB / 440.6 MB, free: 2.137 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007201/0.3042, allocations: 404.3 kB / 441 MB, free: 1.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004938/0.3046, allocations: 89.8 kB / 441.1 MB, free: 1.645 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001609/0.3063, allocations: 0.9284 MB / 442 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005138/0.3068, allocations: 0.8629 MB / 442.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001677/0.3069, allocations: 52.45 kB / 442.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.662e-05/0.307, allocations: 31.42 kB / 442.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.307, allocations: 0 / 442.9 MB, free: 15.71 MB / 366.1 MB Notification: Performance of Templates: time 0.01419/0.3212, allocations: 7.783 MB / 450.7 MB, free: 8.02 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/DifferentialAmplifier/DifferentialAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches