Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.00107/0.001069, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.476/1.476, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007703/0.0007703, allocations: 90.69 kB / 262.5 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.676e-05/2.678e-05, allocations: 4 kB / 315.5 MB, free: 22.7 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1188, allocations: 47.59 MB / 363.1 MB, free: 7.055 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3147/0.4336, allocations: 78.6 MB / 441.7 MB, free: 1.098 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002425/0.4339, allocations: 76.48 kB / 441.8 MB, free: 1.059 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01616/0.4501, allocations: 5.623 MB / 447.4 MB, free: 12.3 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4501, allocations: 0 / 447.4 MB, free: 12.3 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.491e-05/0.4501, allocations: 4 kB / 447.4 MB, free: 12.3 MB / 330.7 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.0008869/0.451, allocations: 0.5662 MB / 448 MB, free: 11.7 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.4511, allocations: 19.97 kB / 448 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.511e-05/0.4512, allocations: 27.72 kB / 448 MB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003157/0.4515, allocations: 267.5 kB / 448.3 MB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.4515, allocations: 11.94 kB / 448.3 MB, free: 11.37 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.252e-05/0.4515, allocations: 12 kB / 448.3 MB, free: 11.36 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000274/0.4518, allocations: 150.1 kB / 448.4 MB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002986/0.4521, allocations: 166 kB / 448.6 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.4522, allocations: 0 / 448.6 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.447e-05/0.4522, allocations: 3.938 kB / 448.6 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.4522, allocations: 8 kB / 448.6 MB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001471/0.4537, allocations: 0.8875 MB / 449.5 MB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003202/0.454, allocations: 151.7 kB / 449.7 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.985e-05/0.4541, allocations: 52.05 kB / 449.7 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.4541, allocations: 0 / 449.7 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000207/0.4544, allocations: 140.1 kB / 449.8 MB, free: 10.04 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.162e-06/0.4544, allocations: 0 / 449.8 MB, free: 10.04 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005217/0.4549, allocations: 199.6 kB / 450 MB, free: 9.871 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.806e-05/0.455, allocations: 114.8 kB / 450.1 MB, free: 9.734 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002095/0.4552, allocations: 209.6 kB / 450.3 MB, free: 9.562 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.4552, allocations: 29.7 kB / 450.4 MB, free: 9.527 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.451e-05/0.4553, allocations: 173.2 kB / 450.5 MB, free: 9.383 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.666e-05/0.4554, allocations: 47.14 kB / 450.6 MB, free: 9.344 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.111e-05/0.4554, allocations: 0 / 450.6 MB, free: 9.344 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.4555, allocations: 333.5 kB / 450.9 MB, free: 9.016 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.247e-05/0.4556, allocations: 50.69 kB / 451 MB, free: 8.988 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.4557, allocations: 108.6 kB / 451.1 MB, free: 8.879 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001167/0.4559, allocations: 54.67 kB / 451.1 MB, free: 8.844 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.4559, allocations: 4.031 kB / 451.1 MB, free: 8.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005269/0.4564, allocations: 266.1 kB / 451.4 MB, free: 8.617 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002487/0.4567, allocations: 0.6443 MB / 452 MB, free: 7.934 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.4567, allocations: 3.984 kB / 452 MB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002016/0.4569, allocations: 52.7 kB / 452.1 MB, free: 7.887 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000199/0.4571, allocations: 43.97 kB / 452.1 MB, free: 7.844 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000371/0.4575, allocations: 0.5866 MB / 452.7 MB, free: 7.262 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002944/0.4578, allocations: 51.78 kB / 452.8 MB, free: 7.211 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.995e-05/0.4578, allocations: 7.375 kB / 452.8 MB, free: 7.207 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.721e-06/0.4578, allocations: 4 kB / 452.8 MB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003262/0.4582, allocations: 176 kB / 453 MB, free: 7.074 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.554e-06/0.4582, allocations: 4 kB / 453 MB, free: 7.07 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.038e-05/0.4583, allocations: 43.09 kB / 453 MB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001911/0.4585, allocations: 39.34 kB / 453 MB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001281/0.4598, allocations: 1.483 MB / 454.5 MB, free: 5.508 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002617/0.46, allocations: 35.94 kB / 454.6 MB, free: 5.473 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/0.4601, allocations: 11.88 kB / 454.6 MB, free: 5.465 MB / 330.7 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.0001916/0.4603, allocations: 120.8 kB / 454.7 MB, free: 5.34 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.81e-05/0.4603, allocations: 19.72 kB / 454.7 MB, free: 5.32 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.63e-05/0.4604, allocations: 22.7 kB / 454.7 MB, free: 5.305 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.4604, allocations: 7.984 kB / 454.7 MB, free: 5.297 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.4604, allocations: 3.953 kB / 454.7 MB, free: 5.293 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.4604, allocations: 3.938 kB / 454.7 MB, free: 5.289 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002431/0.4607, allocations: 257.5 kB / 455 MB, free: 5.039 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.4607, allocations: 4 kB / 455 MB, free: 5.035 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001502/0.4608, allocations: 27.97 kB / 455 MB, free: 5.008 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001198/0.461, allocations: 43.78 kB / 455.1 MB, free: 4.973 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.461, allocations: 192 / 455.1 MB, free: 4.973 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00123/0.4622, allocations: 1.461 MB / 456.5 MB, free: 3.512 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.4622, allocations: 0 / 456.5 MB, free: 3.512 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004163/0.4627, allocations: 231.7 kB / 456.8 MB, free: 3.301 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.027e-05/0.4627, allocations: 107.8 kB / 456.9 MB, free: 3.18 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.378e-05/0.4628, allocations: 0 / 456.9 MB, free: 3.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002427/0.463, allocations: 39.95 kB / 456.9 MB, free: 3.141 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.179e-05/0.4631, allocations: 26.22 kB / 456.9 MB, free: 3.121 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.4631, allocations: 0 / 456.9 MB, free: 3.121 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001383/0.4633, allocations: 167.6 kB / 457.1 MB, free: 2.992 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4633, allocations: 0 / 457.1 MB, free: 2.992 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004752/0.4638, allocations: 111.7 kB / 457.2 MB, free: 2.883 MB / 330.7 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.0001552/0.4639, allocations: 103.8 kB / 457.3 MB, free: 2.77 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006985/0.4646, allocations: 466 kB / 457.8 MB, free: 2.359 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.4646, allocations: 0 / 457.8 MB, free: 2.359 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002391/0.4649, allocations: 177.5 kB / 457.9 MB, free: 2.203 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002586/0.4652, allocations: 42.75 kB / 458 MB, free: 2.168 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005317/0.4657, allocations: 261.6 kB / 458.2 MB, free: 1.918 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.466, allocations: 0.7567 MB / 459 MB, free: 1.137 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001646/0.4662, allocations: 34.05 kB / 459 MB, free: 1.102 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.007e-05/0.4663, allocations: 11.44 kB / 459 MB, free: 1.094 MB / 330.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4663, allocations: 4 kB / 459 MB, free: 1.09 MB / 330.7 MB Notification: Performance of Templates: time 0.006932/0.4732, allocations: 3.434 MB / 462.5 MB, free: 13.66 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp_res.mat","/var/lib/jenkins/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_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches