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.001422/0.001422, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001998/0.001998, allocations: 165 kB / 24.56 MB, free: 12 kB / 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.89/0.89, allocations: 177.1 MB / 205 MB, free: 5.641 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 6.522e-06/6.522e-06, allocations: 0 / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.166e-05/1.818e-05, allocations: 2.312 kB / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002258/0.002276, allocations: 2.201 MB / 275.2 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007037/0.00298, allocations: 0.6114 MB / 275.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.036e-05/0.00304, allocations: 0 / 275.8 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 6.336e-05/0.003104, allocations: 23.78 kB / 275.8 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.01e-05/0.003164, allocations: 47.52 kB / 275.9 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001327/0.003297, allocations: 55.86 kB / 275.9 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001285/0.003425, allocations: 171.1 kB / 276.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.692e-05/0.003502, allocations: 33.67 kB / 276.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001106/0.003613, allocations: 99.72 kB / 276.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.918e-05/0.003672, allocations: 55.81 kB / 276.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.567e-05/0.003687, allocations: 12 kB / 276.3 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.137e-05/0.003729, allocations: 20 kB / 276.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.604e-05/0.003745, allocations: 31.84 kB / 276.3 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.588e-05/0.003781, allocations: 51.84 kB / 276.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001201/0.003901, allocations: 111.6 kB / 276.5 MB, free: 14.01 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.282e-06/0.003902, allocations: 4 kB / 276.5 MB, free: 14 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.5e-07/0.003903, allocations: 0 / 276.5 MB, free: 14 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.475e-06/0.003905, allocations: 0 / 276.5 MB, free: 14 MB / 266.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.0003116/0.004217, allocations: 468.2 kB / 277 MB, free: 13.51 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.198e-05/0.004239, allocations: 8.031 kB / 277 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/0.004361, allocations: 40.77 kB / 277 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001187/0.004479, allocations: 160.4 kB / 277.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.925e-06/0.004487, allocations: 8.609 kB / 277.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.081e-05/0.004498, allocations: 12.38 kB / 277.2 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001499/0.004648, allocations: 130.5 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.004655, allocations: 192 / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.004668, allocations: 8.375 kB / 277.3 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.004675, allocations: 7.875 kB / 277.3 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.954e-05/0.004745, allocations: 40.67 kB / 277.4 MB, free: 13.06 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004772/0.005222, allocations: 494.5 kB / 277.8 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001675/0.00539, allocations: 71.12 kB / 277.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.124e-05/0.005421, allocations: 23.67 kB / 277.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.044e-05/0.005431, allocations: 0 / 277.9 MB, free: 12.42 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.909e-05/0.00545, allocations: 41.45 kB / 278 MB, free: 12.37 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 7.22e-07/0.005451, allocations: 0 / 278 MB, free: 12.37 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004351/0.005886, allocations: 153.1 kB / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.245e-05/0.005909, allocations: 55.34 kB / 278.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.764e-05/0.006006, allocations: 209.2 kB / 278.4 MB, free: 11.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.021e-05/0.006016, allocations: 25.7 kB / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.865e-05/0.006075, allocations: 170.9 kB / 278.6 MB, free: 11.72 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.281e-05/0.006088, allocations: 23.78 kB / 278.6 MB, free: 11.7 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.957e-05/0.006117, allocations: 27.38 kB / 278.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.761e-05/0.006215, allocations: 0.4923 MB / 279.1 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.937e-05/0.006234, allocations: 4 kB / 279.1 MB, free: 11.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.425e-05/0.006269, allocations: 47.05 kB / 279.2 MB, free: 11.1 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.614e-05/0.006325, allocations: 54.98 kB / 279.2 MB, free: 11.03 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.006326, allocations: 0 / 279.2 MB, free: 11.03 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003836/0.00671, allocations: 113.2 kB / 279.3 MB, free: 10.91 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/0.006721, allocations: 4 kB / 279.3 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.006725, allocations: 0 / 279.3 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001625/0.006888, allocations: 43.66 kB / 279.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.096e-05/0.006919, allocations: 11.98 kB / 279.4 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009375/0.007856, allocations: 2.088 MB / 281.5 MB, free: 8.648 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.871e-05/0.007895, allocations: 16.03 kB / 281.5 MB, free: 8.633 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.007904, allocations: 7.984 kB / 281.5 MB, free: 8.625 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 6.457e-05/0.007968, allocations: 152.6 kB / 281.7 MB, free: 8.465 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.15e-05/0.00799, allocations: 15.95 kB / 281.7 MB, free: 8.449 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.253e-05/0.008002, allocations: 8.781 kB / 281.7 MB, free: 8.441 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.008005, allocations: 7.938 kB / 281.7 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-06/0.008006, allocations: 0 / 281.7 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.008008, allocations: 0 / 281.7 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001132/0.008122, allocations: 160.5 kB / 281.8 MB, free: 8.242 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.008123, allocations: 0 / 281.8 MB, free: 8.242 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.197e-05/0.008135, allocations: 7.938 kB / 281.9 MB, free: 8.234 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.612e-05/0.008211, allocations: 39.59 kB / 281.9 MB, free: 8.191 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.008218, allocations: 4 kB / 281.9 MB, free: 8.188 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007917/0.00901, allocations: 2.079 MB / 284 MB, free: 5.984 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.009011, allocations: 4.031 kB / 284 MB, free: 5.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001584/0.009169, allocations: 247.4 kB / 284.2 MB, free: 5.715 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.084e-05/0.00918, allocations: 15.88 kB / 284.2 MB, free: 5.699 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.177e-06/0.009189, allocations: 7.938 kB / 284.2 MB, free: 5.691 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.542e-05/0.009234, allocations: 4 kB / 284.2 MB, free: 5.688 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.367e-05/0.009268, allocations: 7.984 kB / 284.3 MB, free: 5.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.526e-06/0.009272, allocations: 0 / 284.3 MB, free: 5.68 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.37e-05/0.009325, allocations: 151.2 kB / 284.4 MB, free: 5.531 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009325, allocations: 0 / 284.4 MB, free: 5.531 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002223/0.009548, allocations: 39.95 kB / 284.4 MB, free: 5.492 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 6.577e-05/0.009614, allocations: 98.25 kB / 284.5 MB, free: 5.387 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002387/0.009852, allocations: 228.3 kB / 284.8 MB, free: 5.145 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.009853, allocations: 0 / 284.8 MB, free: 5.145 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.00996, allocations: 209.4 kB / 285 MB, free: 4.918 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001689/0.01013, allocations: 20.11 kB / 285 MB, free: 4.898 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005524/0.01068, allocations: 278.4 kB / 285.3 MB, free: 4.598 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.664e-05/0.01072, allocations: 67.34 kB / 285.3 MB, free: 4.512 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.337e-05/0.01075, allocations: 12.48 kB / 285.3 MB, free: 4.496 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.859e-05/0.01077, allocations: 8.5 kB / 285.3 MB, free: 4.488 MB / 266.7 MB Notification: Performance of SimCode: time 4.51e-07/0.01077, allocations: 0 / 285.3 MB, free: 4.488 MB / 266.7 MB Notification: Performance of Templates: time 0.003393/0.01416, allocations: 1.556 MB / 286.9 MB, free: 2.953 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.531940547283739]