Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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.001931/0.001931, allocations: 92.62 kB / 20.96 MB, free: 3.473 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.002367/0.002367, allocations: 149.4 kB / 24.26 MB, free: 184 kB / 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 1.459/1.459, allocations: 173.4 MB / 200.8 MB, free: 9.297 MB / 186.7 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.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.054e-06/2.054e-06, allocations: 0 / 267.3 MB, free: 6.707 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.122e-05/3.327e-05, allocations: 2.312 kB / 267.3 MB, free: 6.703 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.00415/0.004183, allocations: 2.075 MB / 269.4 MB, free: 4.613 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001165/0.005348, allocations: 0.5182 MB / 269.9 MB, free: 4.09 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.00547, allocations: 4 kB / 269.9 MB, free: 4.086 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.005606, allocations: 15.8 kB / 269.9 MB, free: 4.07 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00013/0.005736, allocations: 51.56 kB / 270 MB, free: 4.02 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002704/0.006007, allocations: 43.81 kB / 270 MB, free: 3.977 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002634/0.00627, allocations: 163.2 kB / 270.2 MB, free: 3.816 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001584/0.006429, allocations: 45.56 kB / 270.2 MB, free: 3.766 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002099/0.006638, allocations: 91.8 kB / 270.3 MB, free: 3.676 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001329/0.006771, allocations: 47.83 kB / 270.4 MB, free: 3.629 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.457e-05/0.006806, allocations: 12 kB / 270.4 MB, free: 3.617 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.609e-05/0.006882, allocations: 19.98 kB / 270.4 MB, free: 3.598 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.359e-05/0.006926, allocations: 31.84 kB / 270.4 MB, free: 3.566 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003181/0.007244, allocations: 47.91 kB / 270.5 MB, free: 3.52 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002981/0.007542, allocations: 159.5 kB / 270.6 MB, free: 3.363 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.007545, allocations: 0 / 270.6 MB, free: 3.363 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.007547, allocations: 7.938 kB / 270.6 MB, free: 3.355 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.007553, allocations: 0 / 270.6 MB, free: 3.355 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007448/0.008298, allocations: 369.9 kB / 271 MB, free: 2.961 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.008338, allocations: 8.922 kB / 271 MB, free: 2.953 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001782/0.008516, allocations: 36.77 kB / 271.1 MB, free: 2.918 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003235/0.00884, allocations: 141.6 kB / 271.2 MB, free: 2.754 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.00886, allocations: 8.609 kB / 271.2 MB, free: 2.746 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.523e-05/0.008885, allocations: 12.38 kB / 271.2 MB, free: 2.734 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003281/0.009213, allocations: 157.7 kB / 271.4 MB, free: 2.57 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.009224, allocations: 192 / 271.4 MB, free: 2.57 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.009243, allocations: 4.375 kB / 271.4 MB, free: 2.566 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.009253, allocations: 7.938 kB / 271.4 MB, free: 2.559 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002169/0.00947, allocations: 76.66 kB / 271.5 MB, free: 2.484 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009019/0.01037, allocations: 439.4 kB / 271.9 MB, free: 2.012 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003413/0.01071, allocations: 82.56 kB / 272 MB, free: 1.922 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.169e-05/0.0108, allocations: 36.97 kB / 272 MB, free: 1.883 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/0.01082, allocations: 0 / 272 MB, free: 1.883 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/0.01085, allocations: 34.5 kB / 272 MB, free: 1.84 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.083e-06/0.01085, allocations: 0 / 272 MB, free: 1.84 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007798/0.01163, allocations: 182.3 kB / 272.2 MB, free: 1.652 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.592e-05/0.01168, allocations: 51.41 kB / 272.3 MB, free: 1.59 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001646/0.01184, allocations: 141.8 kB / 272.4 MB, free: 1.441 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.607e-05/0.01187, allocations: 29.7 kB / 272.4 MB, free: 1.406 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/0.01197, allocations: 124.1 kB / 272.5 MB, free: 1.277 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.93e-05/0.012, allocations: 23.84 kB / 272.6 MB, free: 1.254 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.171e-05/0.01205, allocations: 21.72 kB / 272.6 MB, free: 1.227 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001943/0.01225, allocations: 322.8 kB / 272.9 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.632e-05/0.01232, allocations: 31.92 kB / 272.9 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.011e-05/0.01241, allocations: 42.56 kB / 273 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001761/0.01259, allocations: 66.56 kB / 273 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.01259, allocations: 0 / 273 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003421/0.01294, allocations: 138.3 kB / 273.2 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.01296, allocations: 8 kB / 273.2 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.01296, allocations: 4 kB / 273.2 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002474/0.01321, allocations: 45.08 kB / 273.2 MB, free: 0.543 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.628e-05/0.01328, allocations: 15.92 kB / 273.3 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002016/0.01529, allocations: 1.569 MB / 274.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.203e-05/0.01537, allocations: 11.92 kB / 274.8 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.387e-06/0.01538, allocations: 4 kB / 274.8 MB, free: 14.85 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000152/0.01554, allocations: 121.8 kB / 275 MB, free: 14.72 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.036e-05/0.01558, allocations: 11.91 kB / 275 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.593e-05/0.0156, allocations: 12.78 kB / 275 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.0156, allocations: 0 / 275 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.01561, allocations: 64 / 275 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.01561, allocations: 7.938 kB / 275 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00023/0.01584, allocations: 141.3 kB / 275.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.01584, allocations: 128 / 275.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.319e-05/0.01589, allocations: 8 kB / 275.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001628/0.01605, allocations: 40.83 kB / 275.2 MB, free: 14.47 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.01606, allocations: 0 / 275.2 MB, free: 14.47 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001726/0.01778, allocations: 1.559 MB / 276.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.01779, allocations: 0 / 276.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003682/0.01815, allocations: 216.2 kB / 276.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.954e-05/0.01817, allocations: 7.953 kB / 277 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.332e-05/0.01819, allocations: 192 / 277 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/0.0183, allocations: 15.92 kB / 277 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.363e-05/0.01837, allocations: 19.98 kB / 277 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.01837, allocations: 0 / 277 MB, free: 12.53 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001037/0.01848, allocations: 110.4 kB / 277.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01848, allocations: 0 / 277.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000383/0.01886, allocations: 35.95 kB / 277.1 MB, free: 12.39 MB / 266.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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001342/0.01899, allocations: 99.23 kB / 277.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004443/0.01944, allocations: 178.3 kB / 277.4 MB, free: 12.1 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.01944, allocations: 8.062 kB / 277.4 MB, free: 12.09 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006276/0.02007, allocations: 166.4 kB / 277.6 MB, free: 11.92 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.02037, allocations: 12.12 kB / 277.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006193/0.02099, allocations: 260.9 kB / 277.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000117/0.02111, allocations: 102.2 kB / 277.9 MB, free: 11.5 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.051e-05/0.02115, allocations: 4.5 kB / 277.9 MB, free: 11.5 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.085e-05/0.02118, allocations: 12.5 kB / 278 MB, free: 11.48 MB / 266.7 MB Notification: Performance of SimCode: time 5.91e-07/0.02118, allocations: 0 / 278 MB, free: 11.48 MB / 266.7 MB Notification: Performance of Templates: time 0.005043/0.02622, allocations: 1.477 MB / 279.4 MB, free: 10.03 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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.296280397917144]