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.001363/0.001363, allocations: 81.27 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001485/0.001485, allocations: 147.2 kB / 23.94 MB, free: 4.168 MB / 14.72 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.431/1.431, allocations: 173.4 MB / 200.4 MB, free: 12.88 MB / 190.1 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.583e-06/1.583e-06, allocations: 0 / 318.9 MB, free: 3.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.362e-05/2.52e-05, allocations: 2.281 kB / 318.9 MB, free: 3.539 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.004781/0.004807, allocations: 2.055 MB / 321 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.006164, allocations: 0.5163 MB / 321.5 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001838/0.006347, allocations: 6.344 kB / 321.5 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001646/0.006512, allocations: 19.12 kB / 321.5 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001706/0.006682, allocations: 47.66 kB / 321.6 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003028/0.006985, allocations: 46.09 kB / 321.6 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002776/0.007263, allocations: 168.1 kB / 321.8 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.007433, allocations: 39.39 kB / 321.8 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000242/0.007675, allocations: 94.52 kB / 321.9 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000156/0.007831, allocations: 43.81 kB / 322 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.067e-05/0.007872, allocations: 12.91 kB / 322 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001073/0.007979, allocations: 23.14 kB / 322 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.572e-05/0.008025, allocations: 32.78 kB / 322 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.469e-05/0.00812, allocations: 49.11 kB / 322.1 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003618/0.008482, allocations: 160.2 kB / 322.2 MB, free: 1.445 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.008486, allocations: 5.188 kB / 322.2 MB, free: 1.441 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.008488, allocations: 4.453 kB / 322.2 MB, free: 1.438 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.008497, allocations: 0 / 322.2 MB, free: 1.438 MB / 286.1 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.0008333/0.00933, allocations: 368.2 kB / 322.6 MB, free: 1.109 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/0.009385, allocations: 10.25 kB / 322.6 MB, free: 1.109 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001647/0.009549, allocations: 22.56 kB / 322.6 MB, free: 1.098 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003671/0.009916, allocations: 156 kB / 322.8 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.881e-05/0.009935, allocations: 4.984 kB / 322.8 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.665e-05/0.009962, allocations: 11.56 kB / 322.8 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003968/0.01036, allocations: 144.7 kB / 322.9 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.01037, allocations: 192 / 322.9 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.636e-05/0.0104, allocations: 9.75 kB / 322.9 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.01041, allocations: 6.344 kB / 323 MB, free: 0.832 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002755/0.01068, allocations: 78.34 kB / 323 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001029/0.01171, allocations: 445.7 kB / 323.5 MB, free: 456 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004142/0.01213, allocations: 79.61 kB / 323.5 MB, free: 416 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.01224, allocations: 29.92 kB / 323.6 MB, free: 400 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.848e-05/0.01226, allocations: 1.156 kB / 323.6 MB, free: 400 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.076e-05/0.01228, allocations: 35.81 kB / 323.6 MB, free: 356 kB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.693e-06/0.01228, allocations: 1 kB / 323.6 MB, free: 356 kB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.001004/0.01328, allocations: 180.9 kB / 323.8 MB, free: 272 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.708e-05/0.01331, allocations: 51.41 kB / 323.8 MB, free: 208 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001654/0.01348, allocations: 142.9 kB / 324 MB, free: 96 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.01349, allocations: 33.7 kB / 324 MB, free: 56 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.01363, allocations: 126 kB / 324.1 MB, free: 15.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.341e-05/0.01367, allocations: 19.97 kB / 324.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.778e-05/0.01374, allocations: 26.5 kB / 324.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002019/0.01395, allocations: 322.8 kB / 324.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.01406, allocations: 23.42 kB / 324.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001304/0.01419, allocations: 42.44 kB / 324.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002146/0.0144, allocations: 71.38 kB / 324.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.0144, allocations: 4 kB / 324.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004415/0.01485, allocations: 132.2 kB / 324.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.821e-05/0.01487, allocations: 9.344 kB / 324.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.01488, allocations: 1.375 kB / 324.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002781/0.01516, allocations: 40.7 kB / 324.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.038e-05/0.01525, allocations: 13.12 kB / 324.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002597/0.01785, allocations: 1.565 MB / 326.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000124/0.01797, allocations: 8.734 kB / 326.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/0.01799, allocations: 3.188 kB / 326.4 MB, free: 13.91 MB / 302.1 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.000165/0.01815, allocations: 119.9 kB / 326.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.483e-05/0.01822, allocations: 21.44 kB / 326.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.374e-05/0.01825, allocations: 12.47 kB / 326.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.01826, allocations: 5.094 kB / 326.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.01826, allocations: 0 / 326.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.01827, allocations: 5.781 kB / 326.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003079/0.01857, allocations: 139.1 kB / 326.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.01858, allocations: 2.312 kB / 326.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.023e-05/0.01863, allocations: 4.547 kB / 326.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001848/0.01881, allocations: 36.27 kB / 326.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.327e-05/0.01883, allocations: 0.75 kB / 326.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002292/0.02112, allocations: 1.543 MB / 328.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.02112, allocations: 1.375 kB / 328.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005092/0.02163, allocations: 213.7 kB / 328.5 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.226e-05/0.02167, allocations: 16.86 kB / 328.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.432e-05/0.0217, allocations: 0.8438 kB / 328.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001666/0.02186, allocations: 9.734 kB / 328.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.782e-05/0.02192, allocations: 9.594 kB / 328.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.11e-05/0.02193, allocations: 6.109 kB / 328.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001387/0.02207, allocations: 115.8 kB / 328.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.02207, allocations: 0 / 328.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006799/0.02275, allocations: 38.2 kB / 328.7 MB, free: 11.86 MB / 302.1 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.000163/0.02291, allocations: 93.8 kB / 328.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006009/0.02351, allocations: 186.3 kB / 329 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.02352, allocations: 1.375 kB / 329 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003499/0.02387, allocations: 163.6 kB / 329.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004529/0.02432, allocations: 11.3 kB / 329.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008559/0.02518, allocations: 270.1 kB / 329.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001417/0.02532, allocations: 93.09 kB / 329.5 MB, free: 11.22 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.528e-05/0.02538, allocations: 4.266 kB / 329.5 MB, free: 11.22 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.643e-05/0.02541, allocations: 16.67 kB / 329.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of SimCode: time 7.11e-07/0.02541, allocations: 3.938 kB / 329.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of Templates: time 0.007218/0.03263, allocations: 1.45 MB / 331 MB, free: 11.02 MB / 302.1 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.3043678142130375]