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.000934/0.000934, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001048/0.001048, allocations: 144.7 kB / 24.97 MB, free: 9.297 MB / 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 0.9659/0.9659, allocations: 173.4 MB / 201.5 MB, free: 9.34 MB / 186.7 MB " [Timeout remaining time 179] 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 / 268.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.199e-05/2.405e-05, allocations: 6.25 kB / 268.1 MB, free: 6.719 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002574/0.002598, allocations: 2.174 MB / 270.3 MB, free: 4.531 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007985/0.003396, allocations: 0.5416 MB / 270.8 MB, free: 3.984 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.82e-05/0.003484, allocations: 0 / 270.8 MB, free: 3.984 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.003602, allocations: 19.8 kB / 270.8 MB, free: 3.965 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.831e-05/0.00367, allocations: 51.56 kB / 270.9 MB, free: 3.914 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002138/0.003884, allocations: 43.81 kB / 270.9 MB, free: 3.871 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001539/0.004038, allocations: 163.2 kB / 271.1 MB, free: 3.711 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001354/0.004173, allocations: 45.58 kB / 271.1 MB, free: 3.66 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001129/0.004286, allocations: 87.8 kB / 271.2 MB, free: 3.574 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.632e-05/0.004382, allocations: 51.81 kB / 271.3 MB, free: 3.523 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.334e-05/0.004406, allocations: 12 kB / 271.3 MB, free: 3.512 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.761e-05/0.004463, allocations: 20 kB / 271.3 MB, free: 3.492 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.728e-05/0.004491, allocations: 31.84 kB / 271.3 MB, free: 3.461 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.521e-05/0.004536, allocations: 43.92 kB / 271.4 MB, free: 3.418 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001691/0.004705, allocations: 119.6 kB / 271.5 MB, free: 3.301 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.004707, allocations: 0 / 271.5 MB, free: 3.301 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.004708, allocations: 0 / 271.5 MB, free: 3.301 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.117e-06/0.004712, allocations: 0 / 271.5 MB, free: 3.301 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.000467/0.005179, allocations: 468.1 kB / 271.9 MB, free: 2.805 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.005217, allocations: 12.92 kB / 271.9 MB, free: 2.793 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.005336, allocations: 24.84 kB / 272 MB, free: 2.77 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001749/0.005511, allocations: 152.4 kB / 272.1 MB, free: 2.594 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.005522, allocations: 12.61 kB / 272.1 MB, free: 2.582 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.573e-05/0.005538, allocations: 12.38 kB / 272.1 MB, free: 2.57 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001705/0.005709, allocations: 126.5 kB / 272.3 MB, free: 2.434 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.303e-06/0.005716, allocations: 192 / 272.3 MB, free: 2.434 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.005729, allocations: 4.359 kB / 272.3 MB, free: 2.43 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.005737, allocations: 7.938 kB / 272.3 MB, free: 2.422 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.084e-05/0.005808, allocations: 36.69 kB / 272.3 MB, free: 2.387 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005238/0.006332, allocations: 490.5 kB / 272.8 MB, free: 1.859 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001826/0.006514, allocations: 75.11 kB / 272.9 MB, free: 1.773 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.298e-05/0.006547, allocations: 19.81 kB / 272.9 MB, free: 1.75 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.34e-05/0.006561, allocations: 4 kB / 272.9 MB, free: 1.746 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.006584, allocations: 45.3 kB / 272.9 MB, free: 1.691 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.002e-06/0.006585, allocations: 0 / 272.9 MB, free: 1.691 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003701/0.006955, allocations: 149.2 kB / 273.1 MB, free: 1.535 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.484e-05/0.00698, allocations: 51.41 kB / 273.1 MB, free: 1.473 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.007089, allocations: 197.8 kB / 273.3 MB, free: 1.262 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.121e-05/0.0071, allocations: 25.7 kB / 273.4 MB, free: 1.23 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.109e-05/0.007171, allocations: 178.8 kB / 273.5 MB, free: 1.047 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.37e-05/0.007185, allocations: 23.8 kB / 273.5 MB, free: 1.023 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.538e-05/0.00722, allocations: 27.36 kB / 273.6 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.007343, allocations: 0.4922 MB / 274.1 MB, free: 496 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.569e-05/0.007369, allocations: 11.98 kB / 274.1 MB, free: 484 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.802e-05/0.007407, allocations: 46.98 kB / 274.1 MB, free: 424 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.267e-05/0.007469, allocations: 51 kB / 274.2 MB, free: 360 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.007472, allocations: 0 / 274.2 MB, free: 360 kB / 250.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001518/0.007623, allocations: 109.5 kB / 274.3 MB, free: 240 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.007639, allocations: 10.91 kB / 274.3 MB, free: 232 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.007643, allocations: 0 / 274.3 MB, free: 232 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002009/0.007844, allocations: 47.67 kB / 274.3 MB, free: 180 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.405e-05/0.007888, allocations: 7.984 kB / 274.3 MB, free: 172 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001141/0.009029, allocations: 2.082 MB / 276.4 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.743e-05/0.009066, allocations: 15.92 kB / 276.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.009074, allocations: 7.938 kB / 276.5 MB, free: 13.95 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 7.681e-05/0.00915, allocations: 156.6 kB / 276.6 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.218e-05/0.009173, allocations: 11.95 kB / 276.6 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.385e-05/0.009187, allocations: 16.77 kB / 276.6 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.41e-07/0.009187, allocations: 0 / 276.6 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-06/0.009189, allocations: 0 / 276.6 MB, free: 13.76 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.009193, allocations: 3.938 kB / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.009325, allocations: 156.7 kB / 276.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.009327, allocations: 4 kB / 276.8 MB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.576e-05/0.009343, allocations: 7.984 kB / 276.8 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.341e-05/0.009436, allocations: 35.61 kB / 276.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/0.009444, allocations: 0 / 276.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009212/0.01036, allocations: 2.083 MB / 278.9 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.01037, allocations: 4 kB / 278.9 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001648/0.01053, allocations: 247.5 kB / 279.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.927e-06/0.01054, allocations: 7.953 kB / 279.2 MB, free: 11.03 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.645e-06/0.01055, allocations: 4 kB / 279.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.716e-05/0.0106, allocations: 4 kB / 279.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.733e-05/0.01063, allocations: 11.92 kB / 279.2 MB, free: 11.01 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.389e-06/0.01064, allocations: 0 / 279.2 MB, free: 11.01 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.13e-05/0.0107, allocations: 154.2 kB / 279.3 MB, free: 10.86 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.0107, allocations: 32 / 279.3 MB, free: 10.86 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002257/0.01092, allocations: 43.89 kB / 279.4 MB, free: 10.82 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 7.654e-05/0.011, allocations: 95.25 kB / 279.5 MB, free: 10.71 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002651/0.01127, allocations: 233.1 kB / 279.7 MB, free: 10.47 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01127, allocations: 0 / 279.7 MB, free: 10.47 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001133/0.01138, allocations: 213.4 kB / 279.9 MB, free: 10.24 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001841/0.01156, allocations: 16.12 kB / 279.9 MB, free: 10.22 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005932/0.01216, allocations: 266.4 kB / 280.2 MB, free: 9.934 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.549e-05/0.0122, allocations: 71.33 kB / 280.3 MB, free: 9.844 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.779e-05/0.01223, allocations: 4.5 kB / 280.3 MB, free: 9.84 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.368e-05/0.01225, allocations: 12.5 kB / 280.3 MB, free: 9.824 MB / 266.7 MB Notification: Performance of SimCode: time 7.71e-07/0.01226, allocations: 0 / 280.3 MB, free: 9.824 MB / 266.7 MB Notification: Performance of Templates: time 0.003179/0.01543, allocations: 1.504 MB / 281.8 MB, free: 8.336 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 240] 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","",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.796375668141991]