Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001382/0.001382, allocations: 104.5 kB / 21.18 MB, free: 0.5586 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.00135/0.00135, allocations: 189.2 kB / 24.47 MB, free: 3.93 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.633/1.633, allocations: 207.6 MB / 235.2 MB, free: 10.01 MB / 190.1 MB
"
[Timeout remaining time 178]
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 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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor") [Timeout 660]
"Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed.
Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 47.92 kB / 347.7 MB, free: 9.555 MB / 286.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.414/0.4158, allocations: 49.16 MB / 396.8 MB, free: 9.504 MB / 318.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004667/0.4205, allocations: 2.984 MB / 399.8 MB, free: 7.391 MB / 318.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001445/0.4219, allocations: 0.7265 MB / 400.5 MB, free: 6.863 MB / 318.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001934/0.4221, allocations: 12.97 kB / 400.5 MB, free: 6.855 MB / 318.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002705/0.4224, allocations: 57.23 kB / 400.6 MB, free: 6.82 MB / 318.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002272/0.4226, allocations: 106.2 kB / 400.7 MB, free: 6.742 MB / 318.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003729/0.423, allocations: 87.8 kB / 400.8 MB, free: 6.695 MB / 318.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005772/0.4236, allocations: 414.5 kB / 401.2 MB, free: 6.488 MB / 318.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002696/0.4239, allocations: 81.44 kB / 401.3 MB, free: 6.441 MB / 318.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003044/0.4242, allocations: 151.7 kB / 401.4 MB, free: 6.375 MB / 318.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002785/0.4244, allocations: 165 kB / 401.6 MB, free: 6.293 MB / 318.1 MB
Notification: Performance of NFPackage.collectConstants: time 9.181e-05/0.4245, allocations: 35.41 kB / 401.6 MB, free: 6.289 MB / 318.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 8.359e-05/0.4246, allocations: 32.53 kB / 401.6 MB, free: 6.289 MB / 318.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001265/0.4247, allocations: 74.34 kB / 401.7 MB, free: 6.238 MB / 318.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002298/0.425, allocations: 174 kB / 401.9 MB, free: 6.137 MB / 318.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005899/0.4256, allocations: 390.2 kB / 402.3 MB, free: 5.988 MB / 318.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.4256, allocations: 1.469 kB / 402.3 MB, free: 5.988 MB / 318.1 MB
Notification: Performance of FrontEnd: time 1.853e-06/0.4256, allocations: 0 / 402.3 MB, free: 5.988 MB / 318.1 MB
Notification: Performance of Transformations before backend: time 1.543e-05/0.4256, allocations: 3.938 kB / 402.3 MB, free: 5.984 MB / 318.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.001121/0.4267, allocations: 0.5663 MB / 402.8 MB, free: 5.562 MB / 318.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.4268, allocations: 13.05 kB / 402.8 MB, free: 5.559 MB / 318.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 8.922e-05/0.4268, allocations: 40.83 kB / 402.9 MB, free: 5.539 MB / 318.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003801/0.4272, allocations: 226.9 kB / 403.1 MB, free: 5.34 MB / 318.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.259e-05/0.4273, allocations: 19.91 kB / 403.1 MB, free: 5.332 MB / 318.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.286e-05/0.4273, allocations: 25.94 kB / 403.2 MB, free: 5.324 MB / 318.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006393/0.4279, allocations: 258.3 kB / 403.4 MB, free: 5.215 MB / 318.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.428, allocations: 9.094 kB / 403.4 MB, free: 5.207 MB / 318.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.527e-05/0.428, allocations: 14.66 kB / 403.4 MB, free: 5.195 MB / 318.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/0.428, allocations: 7.125 kB / 403.4 MB, free: 5.195 MB / 318.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006543/0.4287, allocations: 219.2 kB / 403.6 MB, free: 5.121 MB / 318.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001923/0.4306, allocations: 0.92 MB / 404.6 MB, free: 4.535 MB / 318.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0006187/0.4312, allocations: 201.6 kB / 404.8 MB, free: 4.445 MB / 318.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002502/0.4315, allocations: 94.95 kB / 404.9 MB, free: 4.41 MB / 318.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.56e-05/0.4315, allocations: 2.219 kB / 404.9 MB, free: 4.41 MB / 318.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.595e-05/0.4315, allocations: 45.34 kB / 404.9 MB, free: 4.359 MB / 318.1 MB
Notification: Performance of pre-optimization done (n=21): time 1.423e-06/0.4315, allocations: 1.125 kB / 404.9 MB, free: 4.359 MB / 318.1 MB
Notification: Performance of matching and sorting (n=21): time 0.001497/0.433, allocations: 408.4 kB / 405.3 MB, free: 4.203 MB / 318.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.562e-05/0.433, allocations: 53.59 kB / 405.4 MB, free: 4.141 MB / 318.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003655/0.4334, allocations: 270.1 kB / 405.6 MB, free: 3.977 MB / 318.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.4334, allocations: 31.05 kB / 405.7 MB, free: 3.941 MB / 318.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001447/0.4336, allocations: 184.9 kB / 405.8 MB, free: 3.785 MB / 318.1 MB
Notification: Performance of collectInitialBindings (initialization): time 5.581e-05/0.4336, allocations: 70.09 kB / 405.9 MB, free: 3.73 MB / 318.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 8.712e-05/0.4337, allocations: 49.27 kB / 405.9 MB, free: 3.695 MB / 318.1 MB
Notification: Performance of setup shared object (initialization): time 9.891e-05/0.4338, allocations: 334.9 kB / 406.3 MB, free: 3.371 MB / 318.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002083/0.434, allocations: 76.88 kB / 406.3 MB, free: 3.348 MB / 318.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002458/0.4343, allocations: 111.1 kB / 406.5 MB, free: 3.293 MB / 318.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004583/0.4347, allocations: 189.7 kB / 406.6 MB, free: 3.199 MB / 318.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.4347, allocations: 0 / 406.6 MB, free: 3.199 MB / 318.1 MB
Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006882/0.4354, allocations: 321.1 kB / 407 MB, free: 3.047 MB / 318.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.4354, allocations: 9.625 kB / 407 MB, free: 3.043 MB / 318.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.4355, allocations: 1.719 kB / 407 MB, free: 3.043 MB / 318.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0003556/0.4358, allocations: 77.39 kB / 407 MB, free: 3.008 MB / 318.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002244/0.436, allocations: 34.73 kB / 407.1 MB, free: 3.008 MB / 318.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001972/0.438, allocations: 2.84 MB / 409.9 MB, free: 304 kB / 318.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002437/0.4382, allocations: 32.31 kB / 409.9 MB, free: 284 kB / 318.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.826e-05/0.4383, allocations: 10.27 kB / 410 MB, free: 280 kB / 318.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.0001423/0.4384, allocations: 138.9 kB / 410.1 MB, free: 144 kB / 318.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 5.618e-05/0.4385, allocations: 29.55 kB / 410.1 MB, free: 128 kB / 318.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.632e-05/0.4385, allocations: 34.86 kB / 410.2 MB, free: 100 kB / 318.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.4385, allocations: 3.547 kB / 410.2 MB, free: 100 kB / 318.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-05/0.4385, allocations: 1.375 kB / 410.2 MB, free: 100 kB / 318.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.748e-06/0.4385, allocations: 4.781 kB / 410.2 MB, free: 96 kB / 318.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/0.4399, allocations: 0.6625 MB / 410.8 MB, free: 15.64 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.4399, allocations: 0 / 410.8 MB, free: 15.64 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001483/0.44, allocations: 27.97 kB / 410.9 MB, free: 15.64 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0002237/0.4402, allocations: 77.94 kB / 410.9 MB, free: 15.6 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.02e-05/0.4402, allocations: 5.562 kB / 410.9 MB, free: 15.6 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003056/0.4433, allocations: 2.834 MB / 413.8 MB, free: 12.89 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.4433, allocations: 0.6562 kB / 413.8 MB, free: 12.89 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008611/0.4442, allocations: 380.5 kB / 414.1 MB, free: 12.65 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/0.4443, allocations: 33.34 kB / 414.2 MB, free: 12.63 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.676e-05/0.4443, allocations: 9.922 kB / 414.2 MB, free: 12.62 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002824/0.4446, allocations: 34.69 kB / 414.2 MB, free: 12.61 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.965e-05/0.4447, allocations: 20.92 kB / 414.2 MB, free: 12.61 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.4447, allocations: 8 kB / 414.2 MB, free: 12.61 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 0.0002472/0.445, allocations: 187.1 kB / 414.4 MB, free: 12.5 MB / 334.1 MB
Notification: Performance of sort global known variables: time 5.1e-08/0.445, allocations: 0 / 414.4 MB, free: 12.5 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0005231/0.4455, allocations: 91.27 kB / 414.5 MB, free: 12.48 MB / 334.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.0001738/0.4457, allocations: 109.2 kB / 414.6 MB, free: 12.38 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.001021/0.4467, allocations: 430.7 kB / 415 MB, free: 12.09 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.4467, allocations: 0 / 415 MB, free: 12.09 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0005158/0.4472, allocations: 344 kB / 415.4 MB, free: 11.82 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004536/0.4477, allocations: 51.28 kB / 415.4 MB, free: 11.8 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/0.4488, allocations: 0.5025 MB / 415.9 MB, free: 11.48 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004722/0.4493, allocations: 0.7645 MB / 416.7 MB, free: 10.78 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 0.0001421/0.4494, allocations: 22.08 kB / 416.7 MB, free: 10.77 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.759e-05/0.4495, allocations: 18.78 kB / 416.7 MB, free: 10.76 MB / 334.1 MB
Notification: Performance of SimCode: time 6.41e-07/0.4495, allocations: 1.219 kB / 416.7 MB, free: 10.76 MB / 334.1 MB
Notification: Performance of Templates: time 0.01042/0.4599, allocations: 3.9 MB / 420.6 MB, free: 8.812 MB / 334.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile [Timeout 660]
(rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 5.2923977095633745]