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.001114/0.001114, allocations: 78.28 kB / 21.42 MB, free: 3.082 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.001193/0.001193, allocations: 151 kB / 24.81 MB, free: 9.289 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.9827/0.9827, allocations: 173.3 MB / 201.4 MB, free: 9.238 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.684e-06/1.684e-06, allocations: 0 / 268.4 MB, free: 6.219 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.01e-05/2.178e-05, allocations: 2.312 kB / 268.4 MB, free: 6.215 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002566/0.002588, allocations: 2.174 MB / 270.6 MB, free: 4.027 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006925/0.00328, allocations: 0.5376 MB / 271.1 MB, free: 3.484 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.515e-05/0.003366, allocations: 0 / 271.1 MB, free: 3.484 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001127/0.003478, allocations: 23.78 kB / 271.1 MB, free: 3.461 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.783e-05/0.003546, allocations: 51.56 kB / 271.2 MB, free: 3.41 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001902/0.003736, allocations: 43.88 kB / 271.2 MB, free: 3.367 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001402/0.003877, allocations: 155.2 kB / 271.4 MB, free: 3.215 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.003997, allocations: 53.5 kB / 271.4 MB, free: 3.156 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.004124, allocations: 87.8 kB / 271.5 MB, free: 3.07 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.956e-05/0.004203, allocations: 47.83 kB / 271.6 MB, free: 3.023 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.275e-05/0.004226, allocations: 15.98 kB / 271.6 MB, free: 3.008 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.44e-05/0.00429, allocations: 20 kB / 271.6 MB, free: 2.988 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.636e-05/0.004317, allocations: 31.84 kB / 271.6 MB, free: 2.957 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.788e-05/0.004355, allocations: 51.91 kB / 271.7 MB, free: 2.906 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001515/0.004506, allocations: 103.7 kB / 271.8 MB, free: 2.805 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.004508, allocations: 0 / 271.8 MB, free: 2.805 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.004509, allocations: 3.938 kB / 271.8 MB, free: 2.801 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.86e-06/0.004514, allocations: 3.984 kB / 271.8 MB, free: 2.797 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.0004169/0.00493, allocations: 464.2 kB / 272.3 MB, free: 2.305 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.004967, allocations: 12.92 kB / 272.3 MB, free: 2.293 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.837e-05/0.005056, allocations: 24.84 kB / 272.3 MB, free: 2.27 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001394/0.005195, allocations: 152.4 kB / 272.4 MB, free: 2.094 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.005206, allocations: 12.61 kB / 272.4 MB, free: 2.082 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.779e-05/0.005224, allocations: 12.38 kB / 272.5 MB, free: 2.07 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001433/0.005367, allocations: 122.5 kB / 272.6 MB, free: 1.938 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.005375, allocations: 192 / 272.6 MB, free: 1.938 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.005387, allocations: 8.359 kB / 272.6 MB, free: 1.93 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.005393, allocations: 7.938 kB / 272.6 MB, free: 1.922 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.583e-05/0.005439, allocations: 32.61 kB / 272.6 MB, free: 1.891 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004518/0.005891, allocations: 459.2 kB / 273.1 MB, free: 1.402 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001533/0.006044, allocations: 75.09 kB / 273.2 MB, free: 1.316 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.368e-05/0.006068, allocations: 15.62 kB / 273.2 MB, free: 1.297 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.242e-05/0.00608, allocations: 4 kB / 273.2 MB, free: 1.293 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.312e-05/0.006103, allocations: 37.52 kB / 273.2 MB, free: 1.246 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.006104, allocations: 0 / 273.2 MB, free: 1.246 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003385/0.006443, allocations: 145.3 kB / 273.3 MB, free: 1.094 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.514e-05/0.006468, allocations: 55.41 kB / 273.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.808e-05/0.006566, allocations: 193.8 kB / 273.6 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.006581, allocations: 29.7 kB / 273.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.914e-05/0.00665, allocations: 178.8 kB / 273.8 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.284e-05/0.006663, allocations: 19.8 kB / 273.8 MB, free: 0.582 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.392e-05/0.006697, allocations: 31.36 kB / 273.8 MB, free: 0.543 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.006812, allocations: 0.4922 MB / 274.3 MB, free: 40 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.862e-05/0.006831, allocations: 15.98 kB / 274.4 MB, free: 24 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.97e-05/0.006871, allocations: 35 kB / 274.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.456e-05/0.006925, allocations: 54.97 kB / 274.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.006928, allocations: 4 kB / 274.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001401/0.007068, allocations: 97.19 kB / 274.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.007082, allocations: 14.8 kB / 274.6 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.007087, allocations: 0 / 274.6 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001409/0.007228, allocations: 35.67 kB / 274.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.37e-05/0.007262, allocations: 15.92 kB / 274.6 MB, free: 15.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/0.008306, allocations: 2.06 MB / 276.7 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.76e-05/0.008343, allocations: 15.89 kB / 276.7 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.039e-06/0.008348, allocations: 0 / 276.7 MB, free: 13.55 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.365e-05/0.008422, allocations: 164.5 kB / 276.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.094e-05/0.008443, allocations: 11.89 kB / 276.9 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.506e-05/0.008458, allocations: 16.77 kB / 276.9 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.008459, allocations: 0 / 276.9 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-06/0.00846, allocations: 0 / 276.9 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.008463, allocations: 0 / 276.9 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001161/0.008579, allocations: 125.2 kB / 277 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.008581, allocations: 4 kB / 277 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.499e-05/0.008596, allocations: 4 kB / 277 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.151e-05/0.008687, allocations: 39.64 kB / 277 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.348e-06/0.008692, allocations: 0 / 277 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000841/0.009533, allocations: 2.056 MB / 279.1 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.009534, allocations: 0 / 279.1 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001533/0.009687, allocations: 239.4 kB / 279.3 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.526e-06/0.009696, allocations: 7.953 kB / 279.3 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.815e-06/0.009703, allocations: 4 kB / 279.3 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.846e-05/0.009752, allocations: 4 kB / 279.3 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.409e-05/0.009776, allocations: 7.984 kB / 279.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.849e-06/0.009781, allocations: 0 / 279.4 MB, free: 10.7 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.843e-05/0.009829, allocations: 150.2 kB / 279.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of sort global known variables: time 2e-08/0.009829, allocations: 4.031 kB / 279.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002343/0.01006, allocations: 39.89 kB / 279.5 MB, free: 10.51 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 8.153e-05/0.01014, allocations: 99.25 kB / 279.6 MB, free: 10.41 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002214/0.01037, allocations: 229 kB / 279.9 MB, free: 10.16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.01037, allocations: 0 / 279.9 MB, free: 10.16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.01047, allocations: 205.4 kB / 280.1 MB, free: 9.941 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001848/0.01066, allocations: 20.05 kB / 280.1 MB, free: 9.922 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000555/0.01121, allocations: 281.8 kB / 280.4 MB, free: 9.621 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.766e-05/0.01125, allocations: 67.33 kB / 280.4 MB, free: 9.535 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.96e-05/0.01128, allocations: 8.5 kB / 280.4 MB, free: 9.527 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.665e-05/0.01134, allocations: 78.19 kB / 280.5 MB, free: 9.449 MB / 266.7 MB Notification: Performance of SimCode: time 9.92e-07/0.01134, allocations: 0 / 280.5 MB, free: 9.449 MB / 266.7 MB Notification: Performance of Templates: time 0.003258/0.0146, allocations: 1.571 MB / 282.1 MB, free: 7.887 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.7331300927326083]