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.0009725/0.0009725, allocations: 80.31 kB / 22.21 MB, free: 2.285 MB / 18.57 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.001489/0.001489, allocations: 168.4 kB / 25.62 MB, free: 8.914 MB / 18.57 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 0.9093/0.9093, allocations: 177.1 MB / 206.1 MB, free: 4.523 MB / 186.7 MB " [Timeout remaining time 179] 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 1.343e-06/1.343e-06, allocations: 0 / 274.2 MB, free: 4.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.361e-05/2.496e-05, allocations: 2.312 kB / 274.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003724/0.003749, allocations: 2.174 MB / 276.4 MB, free: 2.258 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.004923, allocations: 0.6042 MB / 277 MB, free: 1.652 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.005027, allocations: 4 kB / 277 MB, free: 1.648 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.005163, allocations: 27.73 kB / 277 MB, free: 1.621 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001006/0.005264, allocations: 41.56 kB / 277.1 MB, free: 1.582 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002561/0.00552, allocations: 55.81 kB / 277.1 MB, free: 1.527 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002124/0.005733, allocations: 171.1 kB / 277.3 MB, free: 1.359 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002632/0.005996, allocations: 37.58 kB / 277.3 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002229/0.006219, allocations: 100.2 kB / 277.4 MB, free: 1.219 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001092/0.006328, allocations: 51.88 kB / 277.5 MB, free: 1.168 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.706e-05/0.006355, allocations: 16 kB / 277.5 MB, free: 1.152 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.538e-05/0.00643, allocations: 23.98 kB / 277.5 MB, free: 1.129 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.153e-05/0.006462, allocations: 31.84 kB / 277.5 MB, free: 1.098 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.585e-05/0.006518, allocations: 43.92 kB / 277.6 MB, free: 1.055 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002061/0.006724, allocations: 119.6 kB / 277.7 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.006726, allocations: 0 / 277.7 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.006727, allocations: 0 / 277.7 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.006732, allocations: 0 / 277.7 MB, free: 0.9375 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.0005256/0.007257, allocations: 472.2 kB / 278.2 MB, free: 448 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.007293, allocations: 12.03 kB / 278.2 MB, free: 436 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001993/0.007492, allocations: 40.78 kB / 278.2 MB, free: 396 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001889/0.007681, allocations: 148.4 kB / 278.3 MB, free: 220 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.561e-05/0.007696, allocations: 12.61 kB / 278.4 MB, free: 208 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.93e-05/0.007716, allocations: 12.38 kB / 278.4 MB, free: 196 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001915/0.007907, allocations: 122.5 kB / 278.5 MB, free: 60 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.007917, allocations: 4.125 kB / 278.5 MB, free: 56 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.007931, allocations: 4.375 kB / 278.5 MB, free: 52 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.007941, allocations: 11.94 kB / 278.5 MB, free: 40 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.68e-05/0.008018, allocations: 34.06 kB / 278.5 MB, free: 8 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006567/0.008674, allocations: 467.2 kB / 279 MB, free: 15.51 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00127/0.009944, allocations: 75.03 kB / 279.1 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.568e-05/0.00999, allocations: 11.69 kB / 279.1 MB, free: 15.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.311e-05/0.01, allocations: 4 kB / 279.1 MB, free: 15.41 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.01003, allocations: 33.52 kB / 279.1 MB, free: 15.36 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 2.103e-06/0.01003, allocations: 0 / 279.1 MB, free: 15.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004434/0.01048, allocations: 145.1 kB / 279.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.628e-05/0.0105, allocations: 51.41 kB / 279.3 MB, free: 15.15 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/0.01062, allocations: 203.9 kB / 279.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.517e-05/0.01064, allocations: 33.7 kB / 279.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.943e-05/0.01072, allocations: 174.9 kB / 279.7 MB, free: 14.72 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/0.01074, allocations: 23.73 kB / 279.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.705e-05/0.01079, allocations: 31.36 kB / 279.8 MB, free: 14.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.01093, allocations: 0.4922 MB / 280.3 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.148e-05/0.01095, allocations: 11.98 kB / 280.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.438e-05/0.01099, allocations: 38.98 kB / 280.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.91e-05/0.01106, allocations: 47.05 kB / 280.4 MB, free: 14.03 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.01106, allocations: 0 / 280.4 MB, free: 14.03 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001915/0.01125, allocations: 109.2 kB / 280.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.01127, allocations: 11.94 kB / 280.5 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.01127, allocations: 0 / 280.5 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001592/0.01143, allocations: 31.67 kB / 280.5 MB, free: 13.87 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.525e-05/0.01148, allocations: 11.98 kB / 280.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001328/0.01281, allocations: 2.068 MB / 282.6 MB, free: 11.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.145e-05/0.01286, allocations: 7.938 kB / 282.6 MB, free: 11.67 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-06/0.01286, allocations: 0 / 282.6 MB, free: 11.67 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 8.625e-05/0.01295, allocations: 168.5 kB / 282.8 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.158e-05/0.01298, allocations: 7.953 kB / 282.8 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.926e-05/0.013, allocations: 16.81 kB / 282.8 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.013, allocations: 0 / 282.8 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-06/0.013, allocations: 0 / 282.8 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.01301, allocations: 3.938 kB / 282.8 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001695/0.01318, allocations: 133.1 kB / 282.9 MB, free: 11.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.01318, allocations: 0 / 282.9 MB, free: 11.31 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.812e-05/0.0132, allocations: 0 / 282.9 MB, free: 11.31 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001109/0.01331, allocations: 39.64 kB / 283 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.571e-06/0.01331, allocations: 4 kB / 283 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001149/0.01446, allocations: 2.044 MB / 285 MB, free: 9.105 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.01446, allocations: 0 / 285 MB, free: 9.105 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002218/0.01469, allocations: 239.4 kB / 285.2 MB, free: 8.848 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.571e-05/0.0147, allocations: 15.84 kB / 285.3 MB, free: 8.832 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.01472, allocations: 4 kB / 285.3 MB, free: 8.828 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.969e-05/0.0148, allocations: 8.031 kB / 285.3 MB, free: 8.82 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.134e-05/0.01483, allocations: 11.92 kB / 285.3 MB, free: 8.809 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-06/0.01483, allocations: 0 / 285.3 MB, free: 8.809 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.062e-05/0.0149, allocations: 158.1 kB / 285.4 MB, free: 8.656 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0149, allocations: 0 / 285.4 MB, free: 8.656 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004012/0.0153, allocations: 35.94 kB / 285.5 MB, free: 8.621 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 9.249e-05/0.0154, allocations: 95.25 kB / 285.6 MB, free: 8.516 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002781/0.01567, allocations: 232.2 kB / 285.8 MB, free: 8.27 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.01568, allocations: 4 kB / 285.8 MB, free: 8.266 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001453/0.01582, allocations: 205.6 kB / 286 MB, free: 8.043 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.0161, allocations: 12.12 kB / 286 MB, free: 8.031 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007269/0.01682, allocations: 282.6 kB / 286.3 MB, free: 7.727 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.245e-05/0.01688, allocations: 75.27 kB / 286.4 MB, free: 7.633 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.105e-05/0.01692, allocations: 4.531 kB / 286.4 MB, free: 7.629 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.248e-05/0.01699, allocations: 82.19 kB / 286.4 MB, free: 7.547 MB / 266.7 MB Notification: Performance of SimCode: time 8.22e-07/0.01699, allocations: 0 / 286.4 MB, free: 7.547 MB / 266.7 MB Notification: Performance of Templates: time 0.004643/0.02163, allocations: 1.602 MB / 288 MB, free: 5.965 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 240] 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","",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.551157183945179]