Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.001746/0.001746, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001864/0.001864, allocations: 189.6 kB / 23.72 MB, free: 4.68 MB / 14.72 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 1.474/1.474, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
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.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor")
translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 44.06 kB / 370.9 MB, free: 9.34 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2577, allocations: 52.17 MB / 423.1 MB, free: 14.7 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.005195/0.2629, allocations: 3.044 MB / 426.2 MB, free: 11.64 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001462/0.2644, allocations: 0.6778 MB / 426.8 MB, free: 10.95 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002562/0.2646, allocations: 4 kB / 426.8 MB, free: 10.95 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002456/0.2649, allocations: 55.38 kB / 426.9 MB, free: 10.89 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002834/0.2652, allocations: 107 kB / 427 MB, free: 10.79 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003125/0.2655, allocations: 91.88 kB / 427.1 MB, free: 10.7 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005638/0.266, allocations: 410.2 kB / 427.5 MB, free: 10.3 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002095/0.2663, allocations: 83.23 kB / 427.6 MB, free: 10.21 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002719/0.2665, allocations: 151.5 kB / 427.7 MB, free: 10.07 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002171/0.2667, allocations: 179.2 kB / 427.9 MB, free: 9.891 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.783e-05/0.2668, allocations: 32 kB / 427.9 MB, free: 9.859 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 6.326e-05/0.2669, allocations: 32 kB / 428 MB, free: 9.828 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.753e-05/0.2669, allocations: 67.77 kB / 428 MB, free: 9.762 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001898/0.2671, allocations: 171.2 kB / 428.2 MB, free: 9.594 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005011/0.2676, allocations: 388.9 kB / 428.6 MB, free: 9.215 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.2676, allocations: 4 kB / 428.6 MB, free: 9.211 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.553e-06/0.2676, allocations: 4 kB / 428.6 MB, free: 9.207 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 8.256e-06/0.2676, allocations: 0 / 428.6 MB, free: 9.207 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: 67
 * Number of variables: 67
Notification: Performance of Generate backend data structure: time 0.001098/0.2687, allocations: 0.5675 MB / 429.1 MB, free: 8.609 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.2688, allocations: 12.03 kB / 429.2 MB, free: 8.598 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 8.652e-05/0.2689, allocations: 36.7 kB / 429.2 MB, free: 8.562 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004286/0.2693, allocations: 225.9 kB / 429.4 MB, free: 8.316 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.404e-05/0.2693, allocations: 21.02 kB / 429.4 MB, free: 8.293 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.176e-05/0.2694, allocations: 32.31 kB / 429.5 MB, free: 8.262 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.000573/0.27, allocations: 258.4 kB / 429.7 MB, free: 8.008 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.27, allocations: 0 / 429.7 MB, free: 8.008 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.556e-05/0.27, allocations: 12 kB / 429.7 MB, free: 7.996 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.27, allocations: 8 kB / 429.7 MB, free: 7.988 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005305/0.2705, allocations: 218.5 kB / 429.9 MB, free: 7.777 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.2724, allocations: 0.9182 MB / 430.9 MB, free: 6.793 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0005331/0.2729, allocations: 210.6 kB / 431.1 MB, free: 6.578 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002351/0.2731, allocations: 100.4 kB / 431.2 MB, free: 6.48 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.84e-05/0.2731, allocations: 0 / 431.2 MB, free: 6.48 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.877e-05/0.2732, allocations: 46.56 kB / 431.2 MB, free: 6.426 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=21): time 1.242e-06/0.2732, allocations: 0 / 431.2 MB, free: 6.426 MB / 334.1 MB
Notification: Performance of matching and sorting (n=21): time 0.001354/0.2745, allocations: 416.6 kB / 431.6 MB, free: 6.008 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.305e-05/0.2746, allocations: 55.34 kB / 431.7 MB, free: 5.941 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003043/0.2749, allocations: 261.8 kB / 431.9 MB, free: 5.676 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.043e-05/0.2749, allocations: 29.7 kB / 432 MB, free: 5.641 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.2751, allocations: 184.2 kB / 432.1 MB, free: 5.457 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 6.892e-05/0.2751, allocations: 79.36 kB / 432.2 MB, free: 5.379 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 8.756e-05/0.2752, allocations: 41.95 kB / 432.3 MB, free: 5.328 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001598/0.2754, allocations: 334.8 kB / 432.6 MB, free: 4.992 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002118/0.2756, allocations: 80.36 kB / 432.7 MB, free: 4.914 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002854/0.2759, allocations: 112.6 kB / 432.8 MB, free: 4.797 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004343/0.2763, allocations: 186.5 kB / 433 MB, free: 4.605 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2763, allocations: 0 / 433 MB, free: 4.605 MB / 334.1 MB
Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007288/0.277, allocations: 318.9 kB / 433.3 MB, free: 4.281 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.2771, allocations: 8 kB / 433.3 MB, free: 4.273 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.2771, allocations: 3.938 kB / 433.3 MB, free: 4.27 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.000308/0.2774, allocations: 73.67 kB / 433.4 MB, free: 4.191 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002182/0.2776, allocations: 39.91 kB / 433.4 MB, free: 4.152 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002798/0.2804, allocations: 2.838 MB / 436.2 MB, free: 1.086 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002526/0.2806, allocations: 27.88 kB / 436.3 MB, free: 1.059 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.322e-05/0.2807, allocations: 19.98 kB / 436.3 MB, free: 1.039 MB / 334.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 3
 * Number of states: 0 ()
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (20):
 * Single equations (assignments): 18
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 2
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 2 systems
   {(1,4,100.0%), (1,4,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.0001924/0.2809, allocations: 139.7 kB / 436.4 MB, free: 0.8945 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.147e-05/0.2809, allocations: 27.8 kB / 436.4 MB, free: 0.8672 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.915e-05/0.281, allocations: 34.27 kB / 436.5 MB, free: 0.832 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.281, allocations: 0 / 436.5 MB, free: 0.832 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.281, allocations: 4 kB / 436.5 MB, free: 0.8281 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.281, allocations: 0 / 436.5 MB, free: 0.8281 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001157/0.2822, allocations: 0.6552 MB / 437.1 MB, free: 116 kB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.2822, allocations: 192 / 437.1 MB, free: 116 kB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001409/0.2823, allocations: 27.98 kB / 437.2 MB, free: 88 kB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0002093/0.2825, allocations: 73.67 kB / 437.2 MB, free: 8 kB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.2825, allocations: 4 kB / 437.2 MB, free: 4 kB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002991/0.2855, allocations: 2.845 MB / 440.1 MB, free: 12.93 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2855, allocations: 0 / 440.1 MB, free: 12.93 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007472/0.2863, allocations: 384.4 kB / 440.5 MB, free: 12.53 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 7.611e-05/0.2863, allocations: 31.78 kB / 440.5 MB, free: 12.5 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.515e-05/0.2864, allocations: 0 / 440.5 MB, free: 12.5 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002955/0.2867, allocations: 35.97 kB / 440.5 MB, free: 12.46 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.86e-05/0.2868, allocations: 15.97 kB / 440.5 MB, free: 12.45 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.089e-05/0.2868, allocations: 8 kB / 440.5 MB, free: 12.44 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0002465/0.287, allocations: 189.2 kB / 440.7 MB, free: 12.26 MB / 350.1 MB
Notification: Performance of sort global known variables: time 1.1e-07/0.287, allocations: 4 kB / 440.7 MB, free: 12.25 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0004987/0.2875, allocations: 87.89 kB / 440.8 MB, free: 12.17 MB / 350.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: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (13):
 * Single equations (assignments): 11
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 2
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 2 systems
   {(1,4,100.0%), (1,4,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001714/0.2877, allocations: 111.2 kB / 440.9 MB, free: 12.05 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0009602/0.2887, allocations: 437.2 kB / 441.4 MB, free: 11.6 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.2887, allocations: 0 / 441.4 MB, free: 11.6 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0005007/0.2892, allocations: 349.3 kB / 441.7 MB, free: 11.23 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004332/0.2896, allocations: 48.55 kB / 441.7 MB, free: 11.18 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001101/0.2907, allocations: 0.5032 MB / 442.2 MB, free: 10.66 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004664/0.2912, allocations: 0.7639 MB / 443 MB, free: 9.863 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.0001202/0.2913, allocations: 26.27 kB / 443 MB, free: 9.836 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.879e-05/0.2913, allocations: 19.44 kB / 443.1 MB, free: 9.816 MB / 350.1 MB
Notification: Performance of SimCode: time 6.41e-07/0.2913, allocations: 0 / 443.1 MB, free: 9.816 MB / 350.1 MB
Notification: Performance of Templates: time 0.009987/0.3013, allocations: 3.892 MB / 446.9 MB, free: 5.957 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 4.664080560207367]