Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001912/0.001912, allocations: 106.5 kB / 21.22 MB, free: 0.6797 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002409/0.002409, allocations: 209.3 kB / 24.54 MB, free: 4.055 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.498/1.498, allocations: 230.6 MB / 258.3 MB, free: 8.055 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor") [Timeout 660]
"Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.002037/0.002037, allocations: 64.77 kB / 379 MB, free: 2.648 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2763, allocations: 53.37 MB / 432.4 MB, free: 6.973 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004443/0.2807, allocations: 3.046 MB / 435.5 MB, free: 3.914 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001496/0.2822, allocations: 0.7594 MB / 436.2 MB, free: 3.148 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001999/0.2824, allocations: 11.94 kB / 436.2 MB, free: 3.137 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001912/0.2826, allocations: 55.44 kB / 436.3 MB, free: 3.082 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001934/0.2828, allocations: 103 kB / 436.4 MB, free: 2.98 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003376/0.2832, allocations: 99.86 kB / 436.5 MB, free: 2.883 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.000463/0.2836, allocations: 418.1 kB / 436.9 MB, free: 2.473 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001854/0.2838, allocations: 75.58 kB / 437 MB, free: 2.398 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002883/0.2841, allocations: 163.4 kB / 437.1 MB, free: 2.238 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002086/0.2843, allocations: 163.3 kB / 437.3 MB, free: 2.078 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.963e-05/0.2844, allocations: 32 kB / 437.3 MB, free: 2.047 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.2845, allocations: 36 kB / 437.4 MB, free: 2.012 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.017e-05/0.2845, allocations: 75.69 kB / 437.4 MB, free: 1.938 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001839/0.2847, allocations: 183.1 kB / 437.6 MB, free: 1.758 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004883/0.2852, allocations: 392.1 kB / 438 MB, free: 1.379 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2852, allocations: 0 / 438 MB, free: 1.379 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.182e-06/0.2852, allocations: 4 kB / 438 MB, free: 1.375 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 6.562e-06/0.2852, allocations: 0 / 438 MB, free: 1.375 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.00102/0.2862, allocations: 0.5637 MB / 438.6 MB, free: 0.7812 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.2863, allocations: 11.97 kB / 438.6 MB, free: 0.7695 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001877/0.2865, allocations: 48.69 kB / 438.6 MB, free: 0.7227 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.000417/0.2869, allocations: 233.8 kB / 438.8 MB, free: 480 kB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.349e-05/0.2869, allocations: 17.03 kB / 438.9 MB, free: 460 kB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.019e-05/0.287, allocations: 28.38 kB / 438.9 MB, free: 432 kB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005292/0.2875, allocations: 266.4 kB / 439.2 MB, free: 164 kB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.2875, allocations: 0 / 439.2 MB, free: 164 kB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.053e-05/0.2875, allocations: 11.98 kB / 439.2 MB, free: 152 kB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.2875, allocations: 12 kB / 439.2 MB, free: 140 kB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005018/0.288, allocations: 214.5 kB / 439.4 MB, free: 15.93 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001721/0.2898, allocations: 0.9376 MB / 440.3 MB, free: 14.93 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0005094/0.2903, allocations: 202.6 kB / 440.5 MB, free: 14.72 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002326/0.2905, allocations: 96.81 kB / 440.6 MB, free: 14.62 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.2905, allocations: 0 / 440.6 MB, free: 14.62 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.016e-05/0.2906, allocations: 42.55 kB / 440.7 MB, free: 14.57 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=21): time 1.192e-06/0.2906, allocations: 0 / 440.7 MB, free: 14.57 MB / 350.1 MB
Notification: Performance of matching and sorting (n=21): time 0.001261/0.2918, allocations: 413.2 kB / 441.1 MB, free: 14.16 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.074e-05/0.2919, allocations: 55.41 kB / 441.1 MB, free: 14.09 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003562/0.2922, allocations: 261.9 kB / 441.4 MB, free: 13.83 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.214e-05/0.2923, allocations: 25.7 kB / 441.4 MB, free: 13.8 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001598/0.2924, allocations: 188.2 kB / 441.6 MB, free: 13.61 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 6.376e-05/0.2925, allocations: 79.3 kB / 441.7 MB, free: 13.53 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 9.283e-05/0.2926, allocations: 49.89 kB / 441.7 MB, free: 13.47 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001648/0.2928, allocations: 334.8 kB / 442 MB, free: 13.14 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.2929, allocations: 76.42 kB / 442.1 MB, free: 13.06 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002282/0.2932, allocations: 111.5 kB / 442.2 MB, free: 12.95 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003937/0.2936, allocations: 182.5 kB / 442.4 MB, free: 12.76 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2936, allocations: 0 / 442.4 MB, free: 12.76 MB / 350.1 MB
Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006573/0.2942, allocations: 318.9 kB / 442.7 MB, free: 12.43 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.2943, allocations: 11.98 kB / 442.7 MB, free: 12.42 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.2943, allocations: 0 / 442.7 MB, free: 12.42 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0002861/0.2945, allocations: 77.67 kB / 442.8 MB, free: 12.34 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002044/0.2947, allocations: 35.92 kB / 442.8 MB, free: 12.3 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002796/0.2975, allocations: 2.848 MB / 445.7 MB, free: 9.227 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002044/0.2977, allocations: 23.91 kB / 445.7 MB, free: 9.203 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.002e-05/0.2978, allocations: 16.17 kB / 445.7 MB, free: 9.188 MB / 350.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.0001712/0.2979, allocations: 138 kB / 445.8 MB, free: 9.043 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.318e-05/0.298, allocations: 35.75 kB / 445.9 MB, free: 9.008 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.678e-05/0.2981, allocations: 38.33 kB / 445.9 MB, free: 8.969 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.2981, allocations: 0 / 445.9 MB, free: 8.969 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.2981, allocations: 4 kB / 445.9 MB, free: 8.965 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.2981, allocations: 0 / 445.9 MB, free: 8.965 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001166/0.2993, allocations: 0.6514 MB / 446.6 MB, free: 8.254 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.2993, allocations: 0 / 446.6 MB, free: 8.254 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000132/0.2994, allocations: 31.92 kB / 446.6 MB, free: 8.223 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0002101/0.2996, allocations: 69.66 kB / 446.7 MB, free: 8.148 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.864e-05/0.2996, allocations: 8 kB / 446.7 MB, free: 8.141 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002742/0.3024, allocations: 2.834 MB / 449.5 MB, free: 5.074 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3024, allocations: 4.031 kB / 449.5 MB, free: 5.07 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006755/0.303, allocations: 380.5 kB / 449.9 MB, free: 4.68 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 7.128e-05/0.3031, allocations: 31.75 kB / 449.9 MB, free: 4.648 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.315e-05/0.3031, allocations: 8 kB / 449.9 MB, free: 4.641 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002643/0.3034, allocations: 31.97 kB / 450 MB, free: 4.609 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.75e-05/0.3035, allocations: 15.95 kB / 450 MB, free: 4.594 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.216e-05/0.3035, allocations: 12 kB / 450 MB, free: 4.582 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0002249/0.3037, allocations: 185.2 kB / 450.2 MB, free: 4.398 MB / 350.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.3037, allocations: 4 kB / 450.2 MB, free: 4.395 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0004634/0.3042, allocations: 87.89 kB / 450.3 MB, free: 4.309 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.0001476/0.3043, allocations: 111.3 kB / 450.4 MB, free: 4.191 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0008943/0.3052, allocations: 441.1 kB / 450.8 MB, free: 3.734 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3052, allocations: 0 / 450.8 MB, free: 3.734 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0005287/0.3058, allocations: 337.1 kB / 451.1 MB, free: 3.379 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004173/0.3062, allocations: 63.12 kB / 451.2 MB, free: 3.32 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001065/0.3072, allocations: 0.492 MB / 451.7 MB, free: 2.805 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/0.3077, allocations: 0.7678 MB / 452.5 MB, free: 2.012 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.000146/0.3078, allocations: 26.28 kB / 452.5 MB, free: 1.984 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.594e-05/0.3079, allocations: 23.44 kB / 452.5 MB, free: 1.961 MB / 350.1 MB
Notification: Performance of SimCode: time 6.01e-07/0.3079, allocations: 0 / 452.5 MB, free: 1.961 MB / 350.1 MB
Notification: Performance of Templates: time 0.009863/0.3177, allocations: 3.903 MB / 456.4 MB, free: 14.09 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.660895421169698]