Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009766/0.0009766, allocations: 77.97 kB / 21.42 MB, free: 3.074 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009955/0.0009955, allocations: 169 kB / 24.82 MB, free: 9.266 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9481/0.9481, allocations: 177.1 MB / 205.3 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 273.4 MB, free: 1.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.042e-05/2.179e-05, allocations: 2.312 kB / 273.4 MB, free: 1.266 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.0042/0.004222, allocations: 2.989 MB / 276.4 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001461/0.005683, allocations: 0.7516 MB / 277.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001772/0.00586, allocations: 7.938 kB / 277.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001649/0.006025, allocations: 47.5 kB / 277.2 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000219/0.006244, allocations: 107 kB / 277.3 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003374/0.006581, allocations: 107.8 kB / 277.4 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004506/0.007032, allocations: 429.9 kB / 277.8 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001775/0.007209, allocations: 75.64 kB / 277.9 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003798/0.007589, allocations: 235.5 kB / 278.1 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001874/0.007777, allocations: 119.7 kB / 278.3 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.213e-05/0.007829, allocations: 36 kB / 278.3 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.571e-05/0.007914, allocations: 39.94 kB / 278.3 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.516e-05/0.00797, allocations: 75.67 kB / 278.4 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001178/0.008087, allocations: 123.7 kB / 278.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003337/0.008421, allocations: 275 kB / 278.8 MB, free: 11.86 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.008424, allocations: 4 kB / 278.8 MB, free: 11.85 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.008425, allocations: 0 / 278.8 MB, free: 11.85 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.008429, allocations: 0 / 278.8 MB, free: 11.85 MB / 266.7 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.0008075/0.009237, allocations: 0.6635 MB / 279.5 MB, free: 11.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.009276, allocations: 8.031 kB / 279.5 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002031/0.009479, allocations: 64.7 kB / 279.5 MB, free: 11.08 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002837/0.009762, allocations: 231.9 kB / 279.8 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.232e-05/0.009785, allocations: 25.03 kB / 279.8 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.901e-05/0.009824, allocations: 28.38 kB / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003783/0.0102, allocations: 337.6 kB / 280.1 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.01021, allocations: 192 / 280.1 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.678e-05/0.01024, allocations: 16.38 kB / 280.2 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.01025, allocations: 11.94 kB / 280.2 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001607/0.01041, allocations: 80.45 kB / 280.2 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001247/0.01166, allocations: 0.8021 MB / 281.1 MB, free: 9.441 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002953/0.01195, allocations: 167.5 kB / 281.2 MB, free: 9.266 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.257e-05/0.01204, allocations: 59.59 kB / 281.3 MB, free: 9.203 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.957e-05/0.01206, allocations: 8 kB / 281.3 MB, free: 9.195 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/0.01208, allocations: 33.39 kB / 281.3 MB, free: 9.152 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.893e-06/0.01209, allocations: 0 / 281.3 MB, free: 9.152 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006954/0.01278, allocations: 299.9 kB / 281.6 MB, free: 8.848 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.825e-05/0.01281, allocations: 55.41 kB / 281.7 MB, free: 8.781 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002072/0.01302, allocations: 280.2 kB / 281.9 MB, free: 8.492 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.01304, allocations: 29.7 kB / 282 MB, free: 8.457 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.01315, allocations: 235.2 kB / 282.2 MB, free: 8.223 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.96e-05/0.0132, allocations: 83.28 kB / 282.3 MB, free: 8.141 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.848e-05/0.01328, allocations: 55.52 kB / 282.3 MB, free: 8.074 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004954/0.01377, allocations: 0.5117 MB / 282.8 MB, free: 7.551 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.365e-05/0.01384, allocations: 24.44 kB / 282.9 MB, free: 7.527 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.643e-05/0.01392, allocations: 67.89 kB / 282.9 MB, free: 7.449 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001428/0.01407, allocations: 93.66 kB / 283 MB, free: 7.348 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.01407, allocations: 0 / 283 MB, free: 7.348 MB / 266.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003605/0.01443, allocations: 217.3 kB / 283.2 MB, free: 7.121 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.01444, allocations: 8.062 kB / 283.2 MB, free: 7.113 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.01445, allocations: 3.984 kB / 283.2 MB, free: 7.109 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002982/0.01475, allocations: 99.23 kB / 283.3 MB, free: 7.004 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.01488, allocations: 35.97 kB / 283.4 MB, free: 6.969 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002034/0.01692, allocations: 3.615 MB / 287 MB, free: 3.129 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.01704, allocations: 31.94 kB / 287 MB, free: 3.098 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/0.01706, allocations: 8 kB / 287 MB, free: 3.09 MB / 266.7 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.000112/0.01717, allocations: 168.5 kB / 287.2 MB, free: 2.914 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.525e-05/0.01723, allocations: 31.86 kB / 287.2 MB, free: 2.883 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.99e-05/0.01727, allocations: 30.27 kB / 287.3 MB, free: 2.852 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.01727, allocations: 4 kB / 287.3 MB, free: 2.848 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.01728, allocations: 0 / 287.3 MB, free: 2.848 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.01728, allocations: 3.984 kB / 287.3 MB, free: 2.844 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006268/0.01791, allocations: 0.5089 MB / 287.8 MB, free: 2.289 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.01791, allocations: 0 / 287.8 MB, free: 2.289 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.157e-05/0.01799, allocations: 19.98 kB / 287.8 MB, free: 2.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002354/0.01823, allocations: 95.3 kB / 287.9 MB, free: 2.168 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.01824, allocations: 0 / 287.9 MB, free: 2.168 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001936/0.02017, allocations: 3.623 MB / 291.5 MB, free: 14.31 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.02018, allocations: 0 / 291.5 MB, free: 14.31 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002035/0.02221, allocations: 346.5 kB / 291.8 MB, free: 13.95 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.293e-05/0.02225, allocations: 35.72 kB / 291.9 MB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.446e-05/0.02228, allocations: 7.984 kB / 291.9 MB, free: 13.9 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/0.02246, allocations: 28.02 kB / 291.9 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.571e-05/0.02251, allocations: 19.95 kB / 291.9 MB, free: 13.86 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/0.02253, allocations: 8 kB / 291.9 MB, free: 13.85 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001226/0.02265, allocations: 193.1 kB / 292.1 MB, free: 13.66 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02265, allocations: 0 / 292.1 MB, free: 13.66 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004098/0.02306, allocations: 95.84 kB / 292.2 MB, free: 13.57 MB / 282.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: 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.0001275/0.02319, allocations: 107.2 kB / 292.3 MB, free: 13.45 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004563/0.02365, allocations: 470.1 kB / 292.8 MB, free: 12.96 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.02365, allocations: 4 kB / 292.8 MB, free: 12.95 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002638/0.02391, allocations: 419.2 kB / 293.2 MB, free: 12.5 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003716/0.02428, allocations: 43.81 kB / 293.2 MB, free: 12.46 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00405/0.02833, allocations: 482.5 kB / 293.7 MB, free: 11.96 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.43e-05/0.02841, allocations: 92.31 kB / 293.8 MB, free: 11.86 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.812e-05/0.02851, allocations: 25.92 kB / 293.8 MB, free: 11.83 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000171/0.02868, allocations: 126.2 kB / 294 MB, free: 11.71 MB / 282.7 MB Notification: Performance of SimCode: time 8.12e-07/0.02868, allocations: 0 / 294 MB, free: 11.71 MB / 282.7 MB Notification: Performance of Templates: time 0.01416/0.04284, allocations: 3.84 MB / 297.8 MB, free: 7.938 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",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.7794090998359025]