Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001485/0.001485, allocations: 100.9 kB / 17.59 MB, free: 5.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001687/0.001687, allocations: 191.3 kB / 18.52 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 46.95 kB / 301.3 MB, free: 5.859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09803/0.09923, allocations: 49.45 MB / 350.7 MB, free: 4.395 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.009041/0.1083, allocations: 4.436 MB / 355.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003877/0.1122, allocations: 1.211 MB / 356.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007088/0.113, allocations: 15.94 kB / 356.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008197/0.1139, allocations: 142.8 kB / 356.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001047/0.115, allocations: 202.2 kB / 356.7 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008671/0.1158, allocations: 187.7 kB / 356.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001502/0.1174, allocations: 0.7592 MB / 357.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007087/0.1181, allocations: 258.5 kB / 357.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006407/0.1188, allocations: 294.9 kB / 358.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007615/0.1196, allocations: 322.5 kB / 358.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002048/0.1198, allocations: 71.94 kB / 358.6 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002253/0.12, allocations: 64 kB / 358.7 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002435/0.1203, allocations: 151.4 kB / 358.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006495/0.121, allocations: 338.3 kB / 359.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001264/0.1222, allocations: 0.732 MB / 359.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.764e-06/0.1223, allocations: 0 / 359.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1223, allocations: 0 / 359.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.8e-05/0.1223, allocations: 0 / 359.9 MB, free: 11.2 MB / 302.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.003149/0.1255, allocations: 0.9509 MB / 360.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.1256, allocations: 11.89 kB / 360.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002416/0.1258, allocations: 80.09 kB / 360.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000886/0.1267, allocations: 401.9 kB / 361.3 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.697e-05/0.1268, allocations: 45.62 kB / 361.4 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001341/0.127, allocations: 60.31 kB / 361.4 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001791/0.1288, allocations: 0.5575 MB / 362 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.806e-05/0.1288, allocations: 0 / 362 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.824e-05/0.1289, allocations: 20 kB / 362 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.224e-05/0.129, allocations: 12 kB / 362 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00169/0.1307, allocations: 417 kB / 362.4 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005888/0.1366, allocations: 1.836 MB / 364.3 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001517/0.1381, allocations: 0.529 MB / 364.8 MB, free: 6.066 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001844/0.14, allocations: 437 kB / 365.2 MB, free: 5.637 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.06e-05/0.1401, allocations: 8.266 kB / 365.2 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009884/0.1411, allocations: 294 kB / 365.5 MB, free: 5.305 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 4.088e-06/0.1411, allocations: 0 / 365.5 MB, free: 5.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.007898/0.149, allocations: 1.306 MB / 366.8 MB, free: 3.969 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000218/0.1493, allocations: 247.3 kB / 367.1 MB, free: 3.672 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001049/0.1504, allocations: 429.8 kB / 367.5 MB, free: 3.242 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.338e-05/0.1505, allocations: 41.64 kB / 367.5 MB, free: 3.195 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004052/0.1509, allocations: 304.1 kB / 367.8 MB, free: 2.895 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002086/0.1511, allocations: 141.9 kB / 368 MB, free: 2.754 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002667/0.1514, allocations: 90.25 kB / 368 MB, free: 2.656 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002153/0.1517, allocations: 354.8 kB / 368.4 MB, free: 2.301 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006968/0.1524, allocations: 153 kB / 368.5 MB, free: 2.152 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000911/0.1533, allocations: 321.6 kB / 368.8 MB, free: 1.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001367/0.1547, allocations: 439.5 kB / 369.3 MB, free: 1.293 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.1547, allocations: 4 kB / 369.3 MB, free: 1.289 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.003573/0.1583, allocations: 0.7944 MB / 370.1 MB, free: 496 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/0.1584, allocations: 4 kB / 370.1 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/0.1584, allocations: 4 kB / 370.1 MB, free: 488 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001285/0.1597, allocations: 216.7 kB / 370.3 MB, free: 268 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005863/0.1603, allocations: 79.83 kB / 370.4 MB, free: 188 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.213/0.3733, allocations: 3.111 MB / 373.5 MB, free: 23.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000581/0.374, allocations: 84.47 kB / 373.6 MB, free: 23.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.901e-05/0.374, allocations: 20.12 kB / 373.6 MB, free: 23.83 MB / 302.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.000242/0.3743, allocations: 184.8 kB / 373.8 MB, free: 23.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.411e-05/0.3743, allocations: 52.97 kB / 373.8 MB, free: 23.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.54e-05/0.3744, allocations: 53.52 kB / 373.9 MB, free: 23.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.3745, allocations: 5.984 kB / 373.9 MB, free: 23.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.3745, allocations: 3.312 kB / 373.9 MB, free: 23.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.3745, allocations: 1.875 kB / 373.9 MB, free: 23.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002398/0.3769, allocations: 1.276 MB / 375.2 MB, free: 23.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.3769, allocations: 3.75 kB / 375.2 MB, free: 23.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001798/0.3771, allocations: 31.47 kB / 375.2 MB, free: 23.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006588/0.3778, allocations: 222.4 kB / 375.4 MB, free: 22.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.478e-05/0.3778, allocations: 11.25 kB / 375.4 MB, free: 22.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004012/0.3818, allocations: 3.055 MB / 378.5 MB, free: 20.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.3818, allocations: 4.641 kB / 378.5 MB, free: 20.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002011/0.3839, allocations: 0.9355 MB / 379.4 MB, free: 20.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.384, allocations: 130.2 kB / 379.5 MB, free: 20.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.12e-05/0.3841, allocations: 10.95 kB / 379.6 MB, free: 20.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003837/0.3845, allocations: 39.28 kB / 379.6 MB, free: 20.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.646e-05/0.3846, allocations: 35.09 kB / 379.6 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-05/0.3846, allocations: 17.84 kB / 379.6 MB, free: 20.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003399/0.3849, allocations: 296.4 kB / 379.9 MB, free: 20.1 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.385, allocations: 1.062 kB / 379.9 MB, free: 20.1 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006958/0.3857, allocations: 190.6 kB / 380.1 MB, free: 20.05 MB / 302.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.0001417/0.3858, allocations: 112.3 kB / 380.2 MB, free: 19.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00161/0.3874, allocations: 0.6803 MB / 380.9 MB, free: 19.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.3874, allocations: 0 / 380.9 MB, free: 19.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007083/0.3882, allocations: 420.9 kB / 381.3 MB, free: 19.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005128/0.3887, allocations: 77.67 kB / 381.4 MB, free: 19.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001566/0.3903, allocations: 0.9594 MB / 382.4 MB, free: 18.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003374/0.3906, allocations: 0.8611 MB / 383.2 MB, free: 18.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.918e-05/0.3907, allocations: 34.94 kB / 383.3 MB, free: 18.16 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3907, allocations: 0 / 383.3 MB, free: 18.16 MB / 302.1 MB Notification: Performance of Templates: time 0.01117/0.4019, allocations: 8.295 MB / 391.5 MB, free: 15.11 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/DifferentialAmplifier/DifferentialAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches