Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001807/0.001807, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002188/0.002188, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.6/1.6, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Analog.Examples.Resistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001701/0.001701, allocations: 47.92 kB / 373.5 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1089, allocations: 53.32 MB / 426.8 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.004201/0.1131, allocations: 2.168 MB / 429 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001349/0.1145, allocations: 0.6116 MB / 429.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001563/0.1147, allocations: 7.938 kB / 429.6 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001707/0.1148, allocations: 27.78 kB / 429.6 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001517/0.115, allocations: 43.62 kB / 429.7 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003188/0.1153, allocations: 55.81 kB / 429.7 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002499/0.1155, allocations: 155.3 kB / 429.9 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001771/0.1157, allocations: 41.41 kB / 429.9 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002118/0.1159, allocations: 67.78 kB / 430 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001401/0.1161, allocations: 67.64 kB / 430 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.235e-05/0.1161, allocations: 12 kB / 430.1 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.191e-05/0.1162, allocations: 24 kB / 430.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.142e-05/0.1162, allocations: 31.91 kB / 430.1 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.1163, allocations: 79.59 kB / 430.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000306/0.1166, allocations: 163.3 kB / 430.3 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1167, allocations: 3.938 kB / 430.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1167, allocations: 0 / 430.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.425e-06/0.1167, allocations: 0 / 430.3 MB, free: 0.7383 MB / 350.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.0007759/0.1174, allocations: 447 kB / 430.8 MB, free: 256 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.1175, allocations: 8.031 kB / 430.8 MB, free: 248 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002224/0.1177, allocations: 28.77 kB / 430.8 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2233/0.341, allocations: 212.5 kB / 431 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.893e-05/0.3411, allocations: 12.73 kB / 431 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.733e-05/0.3411, allocations: 9.812 kB / 431 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003735/0.3415, allocations: 118.4 kB / 431.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.3415, allocations: 2.484 kB / 431.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.37e-05/0.3415, allocations: 4.5 kB / 431.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.3415, allocations: 3 kB / 431.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002868/0.3418, allocations: 82.06 kB / 431.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.3428, allocations: 0.5997 MB / 431.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003909/0.3432, allocations: 83.02 kB / 431.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.3433, allocations: 31.58 kB / 432 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.735e-05/0.3433, allocations: 0.5 kB / 432 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.843e-05/0.3434, allocations: 41.56 kB / 432 MB, free: 10.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 2.254e-06/0.3434, allocations: 1.266 kB / 432 MB, free: 10.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0009508/0.3443, allocations: 249.8 kB / 432.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.408e-05/0.3443, allocations: 55.52 kB / 432.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.3445, allocations: 149.8 kB / 432.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.26e-05/0.3445, allocations: 26.89 kB / 432.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.227e-05/0.3446, allocations: 132.1 kB / 432.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.094e-05/0.3446, allocations: 22.47 kB / 432.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.956e-05/0.3446, allocations: 21.36 kB / 432.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.662e-05/0.3447, allocations: 318.4 kB / 433 MB, free: 10 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.286e-05/0.3448, allocations: 26.59 kB / 433 MB, free: 10 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.685e-05/0.3449, allocations: 46.06 kB / 433 MB, free: 9.977 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00019/0.3451, allocations: 65.17 kB / 433.1 MB, free: 9.953 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3451, allocations: 6.812 kB / 433.1 MB, free: 9.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004023/0.3455, allocations: 139 kB / 433.2 MB, free: 9.906 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.3455, allocations: 5.5 kB / 433.2 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3455, allocations: 3.781 kB / 433.2 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000236/0.3457, allocations: 39.88 kB / 433.3 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.435e-05/0.3458, allocations: 11.56 kB / 433.3 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001487/0.3473, allocations: 1.697 MB / 435 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.792e-05/0.3474, allocations: 13.45 kB / 435 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.3474, allocations: 2.625 kB / 435 MB, free: 8.387 MB / 350.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 8.254e-05/0.3475, allocations: 122.3 kB / 435.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.166e-05/0.3475, allocations: 10.17 kB / 435.1 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.837e-05/0.3476, allocations: 17.31 kB / 435.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.3476, allocations: 1.547 kB / 435.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.3476, allocations: 0 / 435.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.3476, allocations: 3.062 kB / 435.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002479/0.3478, allocations: 210.3 kB / 435.4 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.3478, allocations: 0 / 435.4 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.622e-05/0.3479, allocations: 6.375 kB / 435.4 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001552/0.348, allocations: 41.64 kB / 435.4 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.348, allocations: 3.938 kB / 435.4 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001283/0.3493, allocations: 1.677 MB / 437.1 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3493, allocations: 5.188 kB / 437.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003654/0.3497, allocations: 213.2 kB / 437.3 MB, free: 6.414 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.23e-05/0.3497, allocations: 83.41 kB / 437.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.225e-05/0.3497, allocations: 7.625 kB / 437.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001691/0.3499, allocations: 7.906 kB / 437.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.424e-05/0.35, allocations: 10.64 kB / 437.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.35, allocations: 2.375 kB / 437.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.432e-05/0.3501, allocations: 112.9 kB / 437.5 MB, free: 6.238 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3501, allocations: 0 / 437.5 MB, free: 6.238 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006581/0.3507, allocations: 42.73 kB / 437.6 MB, free: 6.23 MB / 350.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.0001145/0.3508, allocations: 105.5 kB / 437.7 MB, free: 6.145 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004819/0.3513, allocations: 187.8 kB / 437.9 MB, free: 6.031 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3513, allocations: 0 / 437.9 MB, free: 6.031 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002479/0.3516, allocations: 162.7 kB / 438 MB, free: 5.914 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004341/0.352, allocations: 12.12 kB / 438 MB, free: 5.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006699/0.3527, allocations: 291 kB / 438.3 MB, free: 5.734 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001616/0.3528, allocations: 0.7077 MB / 439 MB, free: 5.039 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.26e-05/0.3529, allocations: 4.578 kB / 439 MB, free: 5.039 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.095e-05/0.3529, allocations: 15.69 kB / 439 MB, free: 5.027 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3529, allocations: 0 / 439 MB, free: 5.027 MB / 350.1 MB Notification: Performance of Templates: time 0.00701/0.3599, allocations: 1.536 MB / 440.6 MB, free: 4.934 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.914233151823282]