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.0009375/0.0009375, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.0009303/0.0009303, allocations: 143.4 kB / 24.89 MB, free: 8.727 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.9689/0.9689, allocations: 173.4 MB / 201.5 MB, free: 8.77 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.724e-06/1.724e-06, allocations: 0 / 268.5 MB, free: 5.996 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.158e-05/1.331e-05, allocations: 2.312 kB / 268.5 MB, free: 5.992 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002438/0.002452, allocations: 2.227 MB / 270.7 MB, free: 3.754 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006833/0.003135, allocations: 0.5531 MB / 271.3 MB, free: 3.195 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.307e-05/0.003208, allocations: 7.938 kB / 271.3 MB, free: 3.188 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001001/0.003308, allocations: 19.78 kB / 271.3 MB, free: 3.168 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.073e-05/0.003369, allocations: 35.64 kB / 271.4 MB, free: 3.133 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001587/0.003528, allocations: 47.81 kB / 271.4 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000133/0.00366, allocations: 163.2 kB / 271.6 MB, free: 2.926 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.827e-05/0.003759, allocations: 42.25 kB / 271.6 MB, free: 2.883 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000108/0.003867, allocations: 95.78 kB / 271.7 MB, free: 2.789 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.042e-05/0.003947, allocations: 55.81 kB / 271.7 MB, free: 2.734 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.869e-05/0.003966, allocations: 12 kB / 271.8 MB, free: 2.723 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.228e-05/0.004038, allocations: 19.94 kB / 271.8 MB, free: 2.703 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.555e-05/0.004064, allocations: 27.86 kB / 271.8 MB, free: 2.676 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.1e-05/0.004105, allocations: 55.89 kB / 271.9 MB, free: 2.621 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001489/0.004254, allocations: 103.6 kB / 272 MB, free: 2.52 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.723e-06/0.004255, allocations: 0 / 272 MB, free: 2.52 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.004256, allocations: 0 / 272 MB, free: 2.52 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.476e-06/0.004259, allocations: 4 kB / 272 MB, free: 2.516 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.0003389/0.004598, allocations: 348.5 kB / 272.3 MB, free: 2.148 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/0.004628, allocations: 8.922 kB / 272.3 MB, free: 2.141 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.543e-05/0.004714, allocations: 24.92 kB / 272.3 MB, free: 2.117 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/0.004837, allocations: 133.5 kB / 272.5 MB, free: 1.961 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.047e-06/0.004846, allocations: 8.609 kB / 272.5 MB, free: 1.953 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.163e-05/0.004858, allocations: 12.38 kB / 272.5 MB, free: 1.941 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000125/0.004983, allocations: 122.5 kB / 272.6 MB, free: 1.809 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.493e-06/0.004989, allocations: 192 / 272.6 MB, free: 1.809 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.004998, allocations: 4.375 kB / 272.6 MB, free: 1.805 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.005004, allocations: 7.938 kB / 272.6 MB, free: 1.797 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.948e-05/0.005043, allocations: 28.69 kB / 272.7 MB, free: 1.77 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003764/0.00542, allocations: 359.1 kB / 273 MB, free: 1.391 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001293/0.005549, allocations: 58.53 kB / 273.1 MB, free: 1.324 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.142e-05/0.005571, allocations: 16.98 kB / 273.1 MB, free: 1.305 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.257e-06/0.00558, allocations: 0 / 273.1 MB, free: 1.305 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.769e-05/0.005597, allocations: 34.56 kB / 273.1 MB, free: 1.262 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 8.42e-07/0.005598, allocations: 0 / 273.1 MB, free: 1.262 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002732/0.005871, allocations: 130.3 kB / 273.2 MB, free: 1.125 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.013e-05/0.005892, allocations: 51.41 kB / 273.3 MB, free: 1.062 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.17e-05/0.005963, allocations: 142.6 kB / 273.4 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.017e-05/0.005973, allocations: 29.7 kB / 273.5 MB, free: 0.875 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.5e-05/0.006019, allocations: 128.1 kB / 273.6 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.197e-05/0.00603, allocations: 23.8 kB / 273.6 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.955e-05/0.00606, allocations: 25.7 kB / 273.6 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.769e-05/0.006128, allocations: 322.8 kB / 273.9 MB, free: 372 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.254e-05/0.00614, allocations: 8 kB / 274 MB, free: 364 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.815e-05/0.006168, allocations: 26.56 kB / 274 MB, free: 328 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.198e-05/0.00621, allocations: 42.48 kB / 274 MB, free: 276 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.006212, allocations: 0 / 274 MB, free: 276 kB / 250.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001039/0.006316, allocations: 86.45 kB / 274.1 MB, free: 180 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.536e-06/0.006325, allocations: 8 kB / 274.1 MB, free: 172 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-06/0.006328, allocations: 0 / 274.1 MB, free: 172 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001126/0.006441, allocations: 40.7 kB / 274.2 MB, free: 128 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.777e-05/0.006469, allocations: 8 kB / 274.2 MB, free: 120 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007863/0.007255, allocations: 1.421 MB / 275.6 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.132e-05/0.007286, allocations: 15.89 kB / 275.6 MB, free: 14.6 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.769e-06/0.007291, allocations: 0 / 275.6 MB, free: 14.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 5.705e-05/0.007348, allocations: 113.8 kB / 275.7 MB, free: 14.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.011e-05/0.007368, allocations: 11.98 kB / 275.7 MB, free: 14.47 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.789e-06/0.007378, allocations: 16.81 kB / 275.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.31e-07/0.007379, allocations: 0 / 275.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-07/0.007379, allocations: 0 / 275.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.007383, allocations: 3.984 kB / 275.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.919e-05/0.007472, allocations: 93.8 kB / 275.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.007474, allocations: 0 / 275.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.304e-05/0.007487, allocations: 7.984 kB / 275.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.046e-05/0.007557, allocations: 32.78 kB / 275.9 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.118e-06/0.007561, allocations: 4 kB / 275.9 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000621/0.008182, allocations: 1.411 MB / 277.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.008183, allocations: 0 / 277.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001111/0.008294, allocations: 176.2 kB / 277.5 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.996e-06/0.008303, allocations: 11.91 kB / 277.5 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.302e-06/0.008309, allocations: 0 / 277.5 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.508e-05/0.008354, allocations: 8.031 kB / 277.5 MB, free: 12.58 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.286e-05/0.008377, allocations: 11.98 kB / 277.5 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-06/0.008381, allocations: 0 / 277.5 MB, free: 12.57 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.5e-05/0.008406, allocations: 32.09 kB / 277.5 MB, free: 12.54 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.008406, allocations: 0 / 277.5 MB, free: 12.54 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001858/0.008592, allocations: 35.94 kB / 277.6 MB, free: 12.5 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 5.623e-05/0.008648, allocations: 76.42 kB / 277.6 MB, free: 12.42 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001755/0.008823, allocations: 175.1 kB / 277.8 MB, free: 12.24 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.008827, allocations: 4 kB / 277.8 MB, free: 12.23 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.594e-05/0.008913, allocations: 159.3 kB / 278 MB, free: 12.06 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001188/0.009032, allocations: 15.94 kB / 278 MB, free: 12.05 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004556/0.009487, allocations: 272.9 kB / 278.2 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.388e-05/0.009521, allocations: 67.33 kB / 278.3 MB, free: 11.67 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.514e-05/0.009546, allocations: 4.5 kB / 278.3 MB, free: 11.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.666e-05/0.009593, allocations: 59.36 kB / 278.4 MB, free: 11.61 MB / 266.7 MB Notification: Performance of SimCode: time 7.42e-07/0.009594, allocations: 0 / 278.4 MB, free: 11.61 MB / 266.7 MB Notification: Performance of Templates: time 0.002863/0.01246, allocations: 1.554 MB / 279.9 MB, free: 10.06 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 -s gbode -gbm=radauIIA3 -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.626837681978941]