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.001286/0.001286, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.001439/0.001439, allocations: 145.3 kB / 24.89 MB, free: 8.742 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.8903/0.8903, allocations: 173.4 MB / 201.5 MB, free: 8.27 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 1.432e-06/1.432e-06, allocations: 0 / 268.5 MB, free: 9.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.784e-05/1.928e-05, allocations: 5.406 kB / 268.5 MB, free: 9.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002524/0.002544, allocations: 2.16 MB / 270.6 MB, free: 7.625 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006475/0.003191, allocations: 0.5525 MB / 271.2 MB, free: 7.07 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.915e-05/0.00326, allocations: 4 kB / 271.2 MB, free: 7.066 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001069/0.003367, allocations: 19.8 kB / 271.2 MB, free: 7.047 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.603e-05/0.003433, allocations: 57.67 kB / 271.3 MB, free: 6.992 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001707/0.003604, allocations: 31.95 kB / 271.3 MB, free: 6.961 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001351/0.003739, allocations: 171.1 kB / 271.5 MB, free: 6.793 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.00384, allocations: 39.61 kB / 271.5 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.003951, allocations: 99.67 kB / 271.6 MB, free: 6.652 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.074e-05/0.004032, allocations: 47.88 kB / 271.7 MB, free: 6.605 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.862e-05/0.00405, allocations: 16 kB / 271.7 MB, free: 6.59 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.715e-05/0.004098, allocations: 12.5 kB / 271.7 MB, free: 6.578 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.384e-05/0.004121, allocations: 32.38 kB / 271.7 MB, free: 6.547 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.606e-05/0.004157, allocations: 44.61 kB / 271.8 MB, free: 6.504 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001563/0.004314, allocations: 115.6 kB / 271.9 MB, free: 6.391 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.683e-06/0.004315, allocations: 4.938 kB / 271.9 MB, free: 6.387 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.52e-07/0.004316, allocations: 0 / 271.9 MB, free: 6.387 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.286e-06/0.004319, allocations: 0 / 271.9 MB, free: 6.387 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.0003439/0.004663, allocations: 342 kB / 272.2 MB, free: 6.027 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.875e-05/0.004692, allocations: 12.03 kB / 272.2 MB, free: 6.016 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.441e-05/0.004776, allocations: 25.61 kB / 272.2 MB, free: 5.992 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.004899, allocations: 138.5 kB / 272.4 MB, free: 5.832 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.00491, allocations: 12.61 kB / 272.4 MB, free: 5.82 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.337e-05/0.004924, allocations: 8.375 kB / 272.4 MB, free: 5.812 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001237/0.005047, allocations: 123 kB / 272.5 MB, free: 5.68 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.005055, allocations: 0.9062 kB / 272.5 MB, free: 5.68 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.217e-06/0.005064, allocations: 4.375 kB / 272.5 MB, free: 5.676 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.00507, allocations: 8.438 kB / 272.5 MB, free: 5.668 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.164e-05/0.005112, allocations: 25.39 kB / 272.6 MB, free: 5.645 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003932/0.005505, allocations: 363.1 kB / 272.9 MB, free: 5.262 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001336/0.005639, allocations: 58.53 kB / 273 MB, free: 5.195 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.082e-05/0.005659, allocations: 16.98 kB / 273 MB, free: 5.176 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.778e-06/0.005669, allocations: 0 / 273 MB, free: 5.176 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.918e-05/0.005688, allocations: 38.5 kB / 273 MB, free: 5.129 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 9.31e-07/0.005689, allocations: 0 / 273 MB, free: 5.129 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002803/0.00597, allocations: 126.3 kB / 273.1 MB, free: 4.996 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.07e-05/0.00599, allocations: 55.39 kB / 273.2 MB, free: 4.93 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.659e-05/0.006057, allocations: 138.6 kB / 273.3 MB, free: 4.781 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.27e-05/0.00607, allocations: 33.7 kB / 273.4 MB, free: 4.742 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.192e-05/0.006112, allocations: 124.1 kB / 273.5 MB, free: 4.613 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.151e-05/0.006123, allocations: 23.78 kB / 273.5 MB, free: 4.59 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.996e-05/0.006153, allocations: 25.7 kB / 273.5 MB, free: 4.559 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.115e-05/0.006224, allocations: 326.7 kB / 273.9 MB, free: 4.23 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.154e-05/0.006236, allocations: 8 kB / 273.9 MB, free: 4.223 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.278e-05/0.006259, allocations: 26.56 kB / 273.9 MB, free: 4.188 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.332e-05/0.006302, allocations: 42.48 kB / 273.9 MB, free: 4.137 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.006304, allocations: 0 / 273.9 MB, free: 4.137 MB / 250.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001081/0.006412, allocations: 94.45 kB / 274 MB, free: 4.035 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/0.006423, allocations: 4 kB / 274 MB, free: 4.031 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-06/0.006426, allocations: 0 / 274 MB, free: 4.031 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000119/0.006545, allocations: 40.75 kB / 274.1 MB, free: 3.988 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.817e-05/0.006573, allocations: 8 kB / 274.1 MB, free: 3.98 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007596/0.007333, allocations: 1.403 MB / 275.5 MB, free: 2.496 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.456e-05/0.007367, allocations: 15.89 kB / 275.5 MB, free: 2.48 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.08e-06/0.007372, allocations: 48 / 275.5 MB, free: 2.48 MB / 250.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 5.621e-05/0.007429, allocations: 117.8 kB / 275.6 MB, free: 2.355 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.848e-05/0.007447, allocations: 11.98 kB / 275.6 MB, free: 2.344 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.15e-05/0.007459, allocations: 12.78 kB / 275.6 MB, free: 2.336 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.52e-07/0.007459, allocations: 4.031 kB / 275.6 MB, free: 2.332 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.02e-07/0.00746, allocations: 0 / 275.6 MB, free: 2.332 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.007462, allocations: 0 / 275.6 MB, free: 2.332 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.869e-05/0.007561, allocations: 97.78 kB / 275.7 MB, free: 2.219 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.007563, allocations: 3.938 kB / 275.7 MB, free: 2.215 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.101e-05/0.007574, allocations: 0 / 275.7 MB, free: 2.215 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.67e-05/0.00765, allocations: 36.81 kB / 275.8 MB, free: 2.176 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.208e-06/0.007655, allocations: 0 / 275.8 MB, free: 2.176 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006229/0.008277, allocations: 1.403 MB / 277.2 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.008279, allocations: 3.938 kB / 277.2 MB, free: 0.6758 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001127/0.008392, allocations: 176.2 kB / 277.4 MB, free: 496 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002401/0.008632, allocations: 7.953 kB / 277.4 MB, free: 488 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.294e-06/0.008639, allocations: 0 / 277.4 MB, free: 488 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.821e-05/0.008687, allocations: 12.02 kB / 277.4 MB, free: 476 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.048e-05/0.008708, allocations: 4 kB / 277.4 MB, free: 472 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.601e-06/0.008713, allocations: 7.984 kB / 277.4 MB, free: 464 kB / 250.7 MB Notification: Performance of sorting global known variables: time 2.412e-05/0.008737, allocations: 35.88 kB / 277.4 MB, free: 428 kB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008737, allocations: 0 / 277.4 MB, free: 428 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001919/0.008929, allocations: 39.94 kB / 277.5 MB, free: 388 kB / 250.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 6.104e-05/0.00899, allocations: 72.42 kB / 277.5 MB, free: 308 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001868/0.009177, allocations: 179 kB / 277.7 MB, free: 116 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.00918, allocations: 0 / 277.7 MB, free: 116 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 9.136e-05/0.009271, allocations: 147.4 kB / 277.8 MB, free: 15.95 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001276/0.009399, allocations: 20.52 kB / 277.9 MB, free: 15.93 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004946/0.009894, allocations: 284.9 kB / 278.1 MB, free: 15.63 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.39e-05/0.009928, allocations: 63.34 kB / 278.2 MB, free: 15.55 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.944e-05/0.009957, allocations: 12.52 kB / 278.2 MB, free: 15.54 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.902e-05/0.01001, allocations: 59.38 kB / 278.3 MB, free: 15.48 MB / 266.7 MB Notification: Performance of SimCode: time 7.71e-07/0.01001, allocations: 0 / 278.3 MB, free: 15.48 MB / 266.7 MB Notification: Performance of Templates: time 0.002984/0.01299, allocations: 1.529 MB / 279.8 MB, free: 13.97 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.494288275949657]