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.001526/0.001526, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001682/0.001682, allocations: 209.8 kB / 24.5 MB, free: 4.133 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.44/1.44, allocations: 230.6 MB / 258.3 MB, free: 8.031 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.00151/0.00151, allocations: 47.92 kB / 379 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.2304, allocations: 53.35 MB / 432.4 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003412/0.2338, allocations: 2.182 MB / 434.6 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001048/0.2348, allocations: 0.6311 MB / 435.2 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.467e-05/0.2349, allocations: 3.938 kB / 435.2 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001215/0.2351, allocations: 19.8 kB / 435.2 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.347e-05/0.2351, allocations: 43.61 kB / 435.3 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002219/0.2354, allocations: 55.81 kB / 435.3 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002043/0.2356, allocations: 159.3 kB / 435.5 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/0.2357, allocations: 41.64 kB / 435.5 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001513/0.2358, allocations: 63.8 kB / 435.6 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001254/0.236, allocations: 71.64 kB / 435.7 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.435e-05/0.236, allocations: 12 kB / 435.7 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.174e-05/0.2361, allocations: 27.97 kB / 435.7 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.255e-05/0.2361, allocations: 31.86 kB / 435.7 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.192e-05/0.2362, allocations: 67.67 kB / 435.8 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002477/0.2364, allocations: 168.6 kB / 436 MB, free: 3.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2364, allocations: 0 / 436 MB, free: 3.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.627e-06/0.2364, allocations: 3.984 kB / 436 MB, free: 3.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.2364, allocations: 4 kB / 436 MB, free: 3.379 MB / 334.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.0006105/0.237, allocations: 369.8 kB / 436.3 MB, free: 2.984 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.082e-05/0.2371, allocations: 8.031 kB / 436.3 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001843/0.2373, allocations: 28.83 kB / 436.4 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002527/0.2375, allocations: 154.3 kB / 436.5 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.682e-05/0.2375, allocations: 12.61 kB / 436.5 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.753e-05/0.2375, allocations: 12.38 kB / 436.5 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000241/0.2378, allocations: 127.8 kB / 436.7 MB, free: 2.621 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/0.2378, allocations: 0 / 436.7 MB, free: 2.621 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.2378, allocations: 4 kB / 436.7 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.2378, allocations: 7.984 kB / 436.7 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001968/0.238, allocations: 76.67 kB / 436.7 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008523/0.2389, allocations: 0.5698 MB / 437.3 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002867/0.2392, allocations: 78.56 kB / 437.4 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.365e-05/0.2392, allocations: 24.98 kB / 437.4 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.555e-05/0.2392, allocations: 4 kB / 437.4 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.2393, allocations: 38.55 kB / 437.5 MB, free: 1.727 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.2393, allocations: 7.938 kB / 437.5 MB, free: 1.719 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007089/0.24, allocations: 178.3 kB / 437.6 MB, free: 1.535 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/0.24, allocations: 55.34 kB / 437.7 MB, free: 1.469 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001444/0.2402, allocations: 155.6 kB / 437.8 MB, free: 1.309 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.2402, allocations: 29.64 kB / 437.9 MB, free: 1.273 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.334e-05/0.2403, allocations: 128.1 kB / 438 MB, free: 1.145 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.174e-05/0.2403, allocations: 19.8 kB / 438 MB, free: 1.125 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.336e-05/0.2403, allocations: 25.7 kB / 438 MB, free: 1.094 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.2405, allocations: 318.8 kB / 438.4 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.164e-05/0.2405, allocations: 20 kB / 438.4 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.988e-05/0.2406, allocations: 50.5 kB / 438.4 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001372/0.2408, allocations: 70.55 kB / 438.5 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2408, allocations: 0 / 438.5 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000288/0.241, allocations: 146.2 kB / 438.6 MB, free: 476 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.2411, allocations: 4 kB / 438.6 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.2411, allocations: 4 kB / 438.6 MB, free: 468 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001811/0.2413, allocations: 36.83 kB / 438.7 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.357e-05/0.2413, allocations: 8 kB / 438.7 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001701/0.243, allocations: 1.584 MB / 440.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.117e-05/0.2431, allocations: 7.984 kB / 440.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.892e-05/0.2431, allocations: 15.98 kB / 440.3 MB, free: 14.7 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 0.0001092/0.2432, allocations: 121.7 kB / 440.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.397e-05/0.2432, allocations: 11.95 kB / 440.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.143e-05/0.2433, allocations: 12.72 kB / 440.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.2433, allocations: 0 / 440.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.2433, allocations: 8 kB / 440.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.2433, allocations: 0 / 440.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002197/0.2435, allocations: 180.6 kB / 440.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2435, allocations: 0 / 440.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.743e-05/0.2435, allocations: 7.984 kB / 440.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001173/0.2437, allocations: 33.03 kB / 440.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.729e-06/0.2437, allocations: 3.984 kB / 440.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001407/0.2451, allocations: 1.578 MB / 442.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.2451, allocations: 8.219 kB / 442.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003194/0.2454, allocations: 220.2 kB / 442.5 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.691e-05/0.2454, allocations: 7.953 kB / 442.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.2454, allocations: 4 kB / 442.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.756e-05/0.2455, allocations: 4 kB / 442.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.999e-05/0.2456, allocations: 7.984 kB / 442.5 MB, free: 12.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.213e-06/0.2456, allocations: 4 kB / 442.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.633e-05/0.2456, allocations: 120.6 kB / 442.6 MB, free: 12.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2456, allocations: 0 / 442.6 MB, free: 12.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003792/0.246, allocations: 43.89 kB / 442.7 MB, free: 12.14 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.0001034/0.2461, allocations: 95.25 kB / 442.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003909/0.2465, allocations: 190.7 kB / 442.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2465, allocations: 0 / 442.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002153/0.2467, allocations: 154.7 kB / 443.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002477/0.247, allocations: 16.12 kB / 443.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005688/0.2476, allocations: 330.4 kB / 443.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.2479, allocations: 0.708 MB / 444.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.861e-05/0.2479, allocations: 11.44 kB / 444.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2479, allocations: 0 / 444.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of Templates: time 0.003741/0.2517, allocations: 1.94 MB / 446.1 MB, free: 8.621 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/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: 6.801696544978768]