Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002125/0.00213, allocations: 176.9 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.031/2.031, allocations: 205.3 MB / 214.1 MB, free: 14.07 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001069/0.001069, allocations: 89.58 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.01e-05/2.018e-05, allocations: 4 kB / 314.8 MB, free: 9.133 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3559/0.356, allocations: 47.57 MB / 362.3 MB, free: 45.79 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1593/0.5153, allocations: 78.39 MB / 440.7 MB, free: 7.934 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000296/0.5156, allocations: 79.95 kB / 440.8 MB, free: 7.855 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02696/0.5426, allocations: 5.604 MB / 446.4 MB, free: 2.266 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.5427, allocations: 5.594 kB / 446.4 MB, free: 2.262 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.176e-05/0.5427, allocations: 8 kB / 446.4 MB, free: 2.254 MB / 331.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001456/0.5442, allocations: 0.5779 MB / 447 MB, free: 1.629 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.5442, allocations: 8.031 kB / 447 MB, free: 1.621 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001208/0.5444, allocations: 27.72 kB / 447 MB, free: 1.594 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005558/0.5449, allocations: 263.3 kB / 447.3 MB, free: 1.297 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.589e-05/0.545, allocations: 7.953 kB / 447.3 MB, free: 1.289 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.886e-05/0.5451, allocations: 15.98 kB / 447.3 MB, free: 1.273 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005136/0.5456, allocations: 156.9 kB / 447.5 MB, free: 1.121 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004916/0.5461, allocations: 170.4 kB / 447.6 MB, free: 0.9453 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.5461, allocations: 0 / 447.6 MB, free: 0.9453 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.838e-05/0.5462, allocations: 3.984 kB / 447.6 MB, free: 0.9414 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.5462, allocations: 4 kB / 447.7 MB, free: 0.9375 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002657/0.5489, allocations: 0.8833 MB / 448.5 MB, free: 15.99 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005412/0.5494, allocations: 142.7 kB / 448.7 MB, free: 15.84 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001642/0.5496, allocations: 56.86 kB / 448.7 MB, free: 15.79 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.518e-05/0.5497, allocations: 7.984 kB / 448.7 MB, free: 15.78 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003227/0.55, allocations: 132 kB / 448.9 MB, free: 15.63 MB / 347.1 MB Notification: Performance of pre-optimization done (n=14): time 2.605e-06/0.55, allocations: 0 / 448.9 MB, free: 15.63 MB / 347.1 MB Notification: Performance of matching and sorting (n=14): time 0.000828/0.5509, allocations: 208.2 kB / 449.1 MB, free: 15.42 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.417e-05/0.551, allocations: 106.8 kB / 449.2 MB, free: 15.29 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003457/0.5513, allocations: 220.4 kB / 449.4 MB, free: 15.07 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 3.899e-05/0.5514, allocations: 25.7 kB / 449.4 MB, free: 15.04 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001727/0.5515, allocations: 234.2 kB / 449.6 MB, free: 14.81 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.585e-05/0.5516, allocations: 39.39 kB / 449.7 MB, free: 14.77 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.661e-05/0.5516, allocations: 0 / 449.7 MB, free: 14.77 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.5518, allocations: 330.8 kB / 450 MB, free: 14.44 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001544/0.552, allocations: 46.44 kB / 450 MB, free: 14.39 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002195/0.5522, allocations: 111.7 kB / 450.2 MB, free: 14.26 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001679/0.5524, allocations: 60.11 kB / 450.2 MB, free: 14.2 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.5524, allocations: 0 / 450.2 MB, free: 14.2 MB / 347.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0009162/0.5533, allocations: 250.3 kB / 450.5 MB, free: 13.95 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003511/0.5537, allocations: 0.649 MB / 451.1 MB, free: 13.25 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.5537, allocations: 0 / 451.1 MB, free: 13.25 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003134/0.554, allocations: 52.83 kB / 451.2 MB, free: 13.19 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003547/0.5544, allocations: 39.97 kB / 451.2 MB, free: 13.15 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006112/0.555, allocations: 0.5835 MB / 451.8 MB, free: 12.54 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005431/0.5556, allocations: 51.86 kB / 451.8 MB, free: 12.49 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.32e-05/0.5557, allocations: 12 kB / 451.8 MB, free: 12.48 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.5557, allocations: 4 kB / 451.9 MB, free: 12.48 MB / 347.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005782/0.5563, allocations: 186.3 kB / 452 MB, free: 12.29 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.5563, allocations: 0 / 452 MB, free: 12.29 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001567/0.5565, allocations: 40.83 kB / 452.1 MB, free: 12.25 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003752/0.5568, allocations: 39.97 kB / 452.1 MB, free: 12.21 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001784/0.5586, allocations: 1.483 MB / 453.6 MB, free: 10.62 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004266/0.5591, allocations: 41.44 kB / 453.6 MB, free: 10.58 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.416e-05/0.5592, allocations: 4 kB / 453.6 MB, free: 10.57 MB / 347.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp.simplifiedExpr:VARIABLE(unit = "V" protected = true ) "Simplified expression for homotopy-based initialization" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002112/0.5594, allocations: 116.8 kB / 453.8 MB, free: 10.45 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.294e-05/0.5595, allocations: 23.72 kB / 453.8 MB, free: 10.43 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.047e-05/0.5596, allocations: 26.64 kB / 453.8 MB, free: 10.4 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.5596, allocations: 4 kB / 453.8 MB, free: 10.4 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.5596, allocations: 7.953 kB / 453.8 MB, free: 10.39 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/0.5596, allocations: 0 / 453.8 MB, free: 10.39 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003688/0.56, allocations: 249.9 kB / 454.1 MB, free: 10.11 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.56, allocations: 4.938 kB / 454.1 MB, free: 10.11 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002623/0.5603, allocations: 31.97 kB / 454.1 MB, free: 10.07 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002222/0.5605, allocations: 44.83 kB / 454.1 MB, free: 10.03 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.057e-05/0.5606, allocations: 4 kB / 454.1 MB, free: 10.02 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001983/0.5626, allocations: 1.456 MB / 455.6 MB, free: 8.461 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.5626, allocations: 0 / 455.6 MB, free: 8.461 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007551/0.5634, allocations: 237.7 kB / 455.8 MB, free: 8.207 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/0.5635, allocations: 105.8 kB / 455.9 MB, free: 8.086 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.128e-05/0.5636, allocations: 0 / 455.9 MB, free: 8.086 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004298/0.564, allocations: 35.97 kB / 456 MB, free: 8.051 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.5641, allocations: 23.97 kB / 456 MB, free: 8.027 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.579e-05/0.5642, allocations: 7.984 kB / 456 MB, free: 8.02 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002348/0.5644, allocations: 160.5 kB / 456.2 MB, free: 7.867 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5644, allocations: 0 / 456.2 MB, free: 7.867 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0007753/0.5652, allocations: 111.7 kB / 456.3 MB, free: 7.758 MB / 347.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001984/0.5654, allocations: 125.1 kB / 456.4 MB, free: 7.625 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.001046/0.5665, allocations: 452.3 kB / 456.8 MB, free: 7.148 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.5665, allocations: 0 / 456.8 MB, free: 7.148 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003672/0.5669, allocations: 179.3 kB / 457 MB, free: 6.965 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003976/0.5673, allocations: 36.36 kB / 457 MB, free: 6.926 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000859/0.5682, allocations: 286.9 kB / 457.3 MB, free: 6.617 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004128/0.5686, allocations: 0.7599 MB / 458.1 MB, free: 5.828 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.5687, allocations: 19.44 kB / 458.1 MB, free: 5.812 MB / 347.1 MB Notification: Performance of SimCode: time 8.41e-07/0.5688, allocations: 0 / 458.1 MB, free: 5.812 MB / 347.1 MB Notification: Performance of Templates: time 0.009735/0.5785, allocations: 3.871 MB / 462 MB, free: 1.977 MB / 347.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmp/InvertingAmp.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches