Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009458/0.0009458, allocations: 144.3 kB / 24.97 MB, free: 9.348 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.995/0.995, allocations: 173.4 MB / 201.5 MB, free: 9.344 MB / 186.7 MB " [Timeout remaining time 179] 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.Differentiator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|der_.c.v|der_.opAmp.out.v|der_.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|der_.c.v|der_.opAmp.out.v|der_.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 268.1 MB, free: 6.711 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.608e-05/2.763e-05, allocations: 6.25 kB / 268.1 MB, free: 6.703 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Differentiator): time 0.004105/0.004132, allocations: 2.865 MB / 271 MB, free: 3.82 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001326/0.005459, allocations: 0.705 MB / 271.7 MB, free: 3.109 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001683/0.005627, allocations: 4 kB / 271.7 MB, free: 3.105 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001583/0.005785, allocations: 47.5 kB / 271.7 MB, free: 3.059 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002147/0.006, allocations: 111.1 kB / 271.8 MB, free: 2.949 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003272/0.006327, allocations: 107.8 kB / 271.9 MB, free: 2.844 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007811/0.007108, allocations: 402.3 kB / 272.3 MB, free: 2.449 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002243/0.007333, allocations: 91.59 kB / 272.4 MB, free: 2.355 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003648/0.007697, allocations: 227.4 kB / 272.7 MB, free: 2.133 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002136/0.007911, allocations: 131.6 kB / 272.8 MB, free: 2.004 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.728e-05/0.007968, allocations: 36 kB / 272.8 MB, free: 1.969 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.191e-05/0.00802, allocations: 40 kB / 272.9 MB, free: 1.93 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.306e-05/0.008093, allocations: 83.67 kB / 272.9 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.008222, allocations: 115.8 kB / 273 MB, free: 1.734 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003579/0.00858, allocations: 239.1 kB / 273.3 MB, free: 1.5 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.008584, allocations: 4 kB / 273.3 MB, free: 1.496 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.008586, allocations: 0 / 273.3 MB, free: 1.496 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.008591, allocations: 0 / 273.3 MB, free: 1.496 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001081/0.009672, allocations: 0.6662 MB / 274 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.009717, allocations: 12.03 kB / 274 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001109/0.009828, allocations: 52.7 kB / 274 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003469/0.01017, allocations: 237 kB / 274.2 MB, free: 476 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.463e-05/0.0102, allocations: 16.88 kB / 274.3 MB, free: 460 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.679e-05/0.01025, allocations: 24.38 kB / 274.3 MB, free: 436 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005059/0.01075, allocations: 271.4 kB / 274.6 MB, free: 140 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.01076, allocations: 192 / 274.6 MB, free: 140 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.738e-05/0.01079, allocations: 12.38 kB / 274.6 MB, free: 128 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.645e-05/0.01081, allocations: 11.94 kB / 274.6 MB, free: 116 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002518/0.01106, allocations: 98.88 kB / 274.7 MB, free: 20 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001503/0.01256, allocations: 1.006 MB / 275.7 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003688/0.01293, allocations: 111.1 kB / 275.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.683e-05/0.01302, allocations: 39.66 kB / 275.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.01304, allocations: 0 / 275.8 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002228/0.01326, allocations: 146 kB / 276 MB, free: 14.61 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.212e-06/0.01326, allocations: 0 / 276 MB, free: 14.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.000351/0.01361, allocations: 133.5 kB / 276.1 MB, free: 14.47 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.449e-05/0.01368, allocations: 81.11 kB / 276.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002809/0.01396, allocations: 296.2 kB / 276.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.887e-05/0.01399, allocations: 29.7 kB / 276.5 MB, free: 14.03 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001412/0.01413, allocations: 258.7 kB / 276.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.142e-05/0.01417, allocations: 51.56 kB / 276.8 MB, free: 13.72 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.133e-05/0.01425, allocations: 55.31 kB / 276.9 MB, free: 13.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.01443, allocations: 0.4962 MB / 277.3 MB, free: 13.15 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.01454, allocations: 57.91 kB / 277.4 MB, free: 13.09 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001783/0.01471, allocations: 203.8 kB / 277.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002503/0.01496, allocations: 217.2 kB / 277.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.01497, allocations: 4 kB / 277.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004433/0.01541, allocations: 256.7 kB / 278.1 MB, free: 12.28 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.26e-05/0.01545, allocations: 33.69 kB / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.01545, allocations: 4 kB / 278.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.01547, allocations: 4 kB / 278.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001719/0.01564, allocations: 55.91 kB / 278.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.01565, allocations: 4.344 kB / 278.2 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001292/0.01578, allocations: 51.77 kB / 278.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/0.0158, allocations: 15.98 kB / 278.2 MB, free: 12.11 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001158/0.01591, allocations: 172.5 kB / 278.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.377e-05/0.01595, allocations: 27.86 kB / 278.4 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.132e-05/0.01599, allocations: 21.77 kB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.01599, allocations: 4 kB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.01599, allocations: 0 / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.016, allocations: 0 / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001797/0.01618, allocations: 220.4 kB / 278.7 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.01618, allocations: 3.984 kB / 278.7 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001104/0.01629, allocations: 35.92 kB / 278.7 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.01629, allocations: 0 / 278.7 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.01631, allocations: 7.984 kB / 278.7 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.01631, allocations: 0 / 278.7 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.01631, allocations: 0 / 278.7 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002622/0.01657, allocations: 184.1 kB / 278.9 MB, free: 11.38 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.806e-05/0.0166, allocations: 19.86 kB / 278.9 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.021e-05/0.01663, allocations: 7.984 kB / 278.9 MB, free: 11.35 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.751e-05/0.01671, allocations: 20.02 kB / 278.9 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.373e-05/0.01676, allocations: 23.91 kB / 279 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.343e-06/0.01677, allocations: 0 / 279 MB, free: 11.3 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000115/0.01688, allocations: 205.1 kB / 279.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01688, allocations: 0 / 279.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000195/0.01708, allocations: 67.84 kB / 279.2 MB, free: 11.04 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (der_.c.v) * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001163/0.0172, allocations: 103.2 kB / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002275/0.01742, allocations: 189.2 kB / 279.5 MB, free: 10.72 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.01743, allocations: 4 kB / 279.5 MB, free: 10.72 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.21e-05/0.0175, allocations: 51.53 kB / 279.6 MB, free: 10.66 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002178/0.01772, allocations: 44.42 kB / 279.6 MB, free: 10.62 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008394/0.01855, allocations: 471.5 kB / 280.1 MB, free: 10.13 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.607e-05/0.0186, allocations: 80.31 kB / 280.2 MB, free: 10.03 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.906e-05/0.01868, allocations: 26.3 kB / 280.2 MB, free: 10.01 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.548e-05/0.01874, allocations: 28.48 kB / 280.2 MB, free: 9.98 MB / 266.7 MB Notification: Performance of SimCode: time 9.01e-07/0.01874, allocations: 0 / 280.2 MB, free: 9.98 MB / 266.7 MB Notification: Performance of Templates: time 0.005142/0.02388, allocations: 3.129 MB / 283.3 MB, free: 6.91 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Differentiator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Differentiator/Differentiator.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8747210148721933]