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.002517/0.002517, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.00303/0.00303, allocations: 153.5 kB / 24.26 MB, free: 168 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.576/1.576, allocations: 173.3 MB / 200.8 MB, free: 9.316 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 1.282e-06/1.282e-06, allocations: 0 / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.49e-05/3.618e-05, allocations: 6.25 kB / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.004227/0.004263, allocations: 2.154 MB / 269.5 MB, free: 4.562 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001064/0.005327, allocations: 0.526 MB / 270 MB, free: 4.031 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.08e-05/0.005418, allocations: 0 / 270 MB, free: 4.031 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.005557, allocations: 31.78 kB / 270 MB, free: 4 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001034/0.00566, allocations: 43.52 kB / 270.1 MB, free: 3.957 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002275/0.005888, allocations: 39.94 kB / 270.1 MB, free: 3.918 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000251/0.006139, allocations: 167.1 kB / 270.3 MB, free: 3.754 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000154/0.006293, allocations: 41.64 kB / 270.3 MB, free: 3.707 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00019/0.006482, allocations: 99.72 kB / 270.4 MB, free: 3.609 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000119/0.006602, allocations: 43.89 kB / 270.5 MB, free: 3.566 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.456e-05/0.006636, allocations: 12 kB / 270.5 MB, free: 3.555 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.968e-05/0.006706, allocations: 20 kB / 270.5 MB, free: 3.535 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.653e-05/0.006752, allocations: 31.84 kB / 270.5 MB, free: 3.504 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.533e-05/0.006828, allocations: 51.89 kB / 270.6 MB, free: 3.453 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002924/0.00712, allocations: 163.5 kB / 270.7 MB, free: 3.293 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.007123, allocations: 0 / 270.7 MB, free: 3.293 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.007124, allocations: 0 / 270.7 MB, free: 3.293 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.007129, allocations: 4 kB / 270.7 MB, free: 3.289 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.0007486/0.007877, allocations: 475.8 kB / 271.2 MB, free: 2.785 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.007915, allocations: 8.922 kB / 271.2 MB, free: 2.777 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001592/0.008074, allocations: 32.84 kB / 271.2 MB, free: 2.746 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002442/0.008318, allocations: 156.3 kB / 271.4 MB, free: 2.566 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.175e-05/0.00834, allocations: 12.61 kB / 271.4 MB, free: 2.555 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.964e-05/0.00836, allocations: 8.375 kB / 271.4 MB, free: 2.547 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002717/0.008631, allocations: 137.7 kB / 271.5 MB, free: 2.402 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.008642, allocations: 192 / 271.5 MB, free: 2.402 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.925e-05/0.008662, allocations: 8.359 kB / 271.6 MB, free: 2.395 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.008672, allocations: 7.938 kB / 271.6 MB, free: 2.387 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001876/0.00886, allocations: 68.67 kB / 271.6 MB, free: 2.32 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009131/0.009773, allocations: 0.5182 MB / 272.1 MB, free: 1.754 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003262/0.0101, allocations: 91.05 kB / 272.2 MB, free: 1.652 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.505e-05/0.01018, allocations: 31.8 kB / 272.3 MB, free: 1.617 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.0102, allocations: 0 / 272.3 MB, free: 1.617 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.525e-05/0.01024, allocations: 41.33 kB / 272.3 MB, free: 1.566 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 7.72e-07/0.01024, allocations: 0 / 272.3 MB, free: 1.566 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007131/0.01095, allocations: 181.2 kB / 272.5 MB, free: 1.379 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.362e-05/0.01099, allocations: 51.41 kB / 272.5 MB, free: 1.316 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002073/0.0112, allocations: 213.9 kB / 272.7 MB, free: 1.09 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.987e-05/0.01123, allocations: 37.64 kB / 272.8 MB, free: 1.047 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/0.01137, allocations: 174.8 kB / 273 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.357e-05/0.01139, allocations: 23.8 kB / 273 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.858e-05/0.01145, allocations: 31.36 kB / 273 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002737/0.01172, allocations: 0.4961 MB / 273.5 MB, free: 304 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.979e-05/0.01178, allocations: 20 kB / 273.5 MB, free: 284 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001025/0.01189, allocations: 58.92 kB / 273.6 MB, free: 212 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001448/0.01203, allocations: 71.05 kB / 273.6 MB, free: 128 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.01203, allocations: 0 / 273.6 MB, free: 128 kB / 250.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003359/0.01237, allocations: 141.2 kB / 273.8 MB, free: 15.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.01239, allocations: 7.938 kB / 273.8 MB, free: 15.97 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.01239, allocations: 0 / 273.8 MB, free: 15.97 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002181/0.01261, allocations: 43.66 kB / 273.8 MB, free: 15.92 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.331e-05/0.01266, allocations: 8 kB / 273.8 MB, free: 15.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002396/0.01506, allocations: 2.179 MB / 276 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.683e-05/0.01513, allocations: 15.89 kB / 276 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.295e-06/0.01514, allocations: 0 / 276 MB, free: 13.6 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.0001498/0.01529, allocations: 168.6 kB / 276.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.748e-05/0.01533, allocations: 11.94 kB / 276.2 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.402e-05/0.01535, allocations: 16.81 kB / 276.2 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.01535, allocations: 0 / 276.2 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.62e-07/0.01536, allocations: 48 / 276.2 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.01537, allocations: 7.922 kB / 276.2 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002366/0.0156, allocations: 172.6 kB / 276.4 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.0156, allocations: 0 / 276.4 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.16e-05/0.01563, allocations: 0 / 276.4 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001693/0.0158, allocations: 43.66 kB / 276.5 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.746e-06/0.01581, allocations: 0 / 276.5 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001944/0.01776, allocations: 2.165 MB / 278.6 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.01776, allocations: 4 kB / 278.6 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003775/0.01814, allocations: 267.4 kB / 278.9 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.552e-05/0.01816, allocations: 11.94 kB / 278.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.39e-05/0.01817, allocations: 0 / 278.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.788e-05/0.01827, allocations: 12.03 kB / 278.9 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.555e-05/0.01832, allocations: 15.86 kB / 278.9 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.641e-06/0.01832, allocations: 0 / 278.9 MB, free: 10.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001294/0.01845, allocations: 166.2 kB / 279.1 MB, free: 10.36 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01845, allocations: 0 / 279.1 MB, free: 10.36 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003563/0.01881, allocations: 43.89 kB / 279.1 MB, free: 10.32 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.0001184/0.01893, allocations: 95.25 kB / 279.2 MB, free: 10.22 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004527/0.01938, allocations: 249.2 kB / 279.5 MB, free: 9.957 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.01938, allocations: 0 / 279.5 MB, free: 9.957 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002983/0.01968, allocations: 229.4 kB / 279.7 MB, free: 9.711 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002528/0.01993, allocations: 8.312 kB / 279.7 MB, free: 9.703 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005689/0.0205, allocations: 278.5 kB / 280 MB, free: 9.402 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001135/0.02062, allocations: 98.2 kB / 280.1 MB, free: 9.281 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.643e-05/0.02066, allocations: 0.5 kB / 280.1 MB, free: 9.281 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.641e-05/0.0207, allocations: 16.5 kB / 280.1 MB, free: 9.266 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.0207, allocations: 4 kB / 280.1 MB, free: 9.262 MB / 266.7 MB Notification: Performance of Templates: time 0.005473/0.02617, allocations: 1.493 MB / 281.6 MB, free: 7.789 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","/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.4691367980558425]