Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.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.001694/0.001694, allocations: 96.03 kB / 21.18 MB, free: 0.5312 MB / 14.72 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.001753/0.001753, allocations: 185 kB / 24.46 MB, free: 3.863 MB / 14.72 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 1.473/1.473, allocations: 225.7 MB / 253.3 MB, free: 12.84 MB / 206.1 MB " [Timeout remaining time 178] 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.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel") translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001771/0.001771, allocations: 39.94 kB / 371.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2749, allocations: 52.18 MB / 423.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002597/0.2775, allocations: 1.203 MB / 425 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003557/0.2811, allocations: 1.974 MB / 427 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.501e-05/0.2811, allocations: 0 / 427 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.25e-05/0.2812, allocations: 7.922 kB / 427 MB, free: 11.27 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Examples.mo:279:3-372:24:writable] Warning: Pure function 'Modelica.Utilities.Examples.readRealParameter' contains a call to impure function 'Modelica.Utilities.Streams.readLine'. Notification: Performance of NFTyping.typeBindings: time 0.001352/0.2825, allocations: 441 kB / 427.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.708e-05/0.2825, allocations: 4 kB / 427.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.894e-05/0.2826, allocations: 7.938 kB / 427.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.398e-05/0.2826, allocations: 0 / 427.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.439e-05/0.2827, allocations: 7.938 kB / 427.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.941e-05/0.2827, allocations: 11.97 kB / 427.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.095e-05/0.2828, allocations: 0 / 427.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008564/0.2836, allocations: 439.5 kB / 427.9 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.862e-05/0.2836, allocations: 7.984 kB / 427.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.415e-05/0.2837, allocations: 3.938 kB / 427.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00055/0.2842, allocations: 337.9 kB / 428.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.2842, allocations: 0 / 428.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2842, allocations: 8 kB / 428.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.218e-05/0.2842, allocations: 0 / 428.2 MB, free: 10.04 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0005109/0.2847, allocations: 333.5 kB / 428.5 MB, free: 9.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.2848, allocations: 8.031 kB / 428.5 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.543e-05/0.2849, allocations: 80.22 kB / 428.6 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001841/0.2851, allocations: 189.8 kB / 428.8 MB, free: 9.383 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.077e-05/0.2851, allocations: 150.9 kB / 429 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.9e-05/0.2852, allocations: 158.7 kB / 429.1 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.299e-05/0.2853, allocations: 101 kB / 429.2 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.61e-05/0.2853, allocations: 79.22 kB / 429.3 MB, free: 8.895 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.415e-05/0.2854, allocations: 154.6 kB / 429.4 MB, free: 8.742 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.58e-05/0.2855, allocations: 158.6 kB / 429.6 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.577e-05/0.2856, allocations: 154.5 kB / 429.7 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003114/0.2859, allocations: 397.6 kB / 430.1 MB, free: 8.016 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001002/0.286, allocations: 169.1 kB / 430.3 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.036e-05/0.286, allocations: 88.12 kB / 430.4 MB, free: 7.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.448e-05/0.2861, allocations: 79.28 kB / 430.5 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001716/0.2862, allocations: 47.34 kB / 430.5 MB, free: 7.613 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 2.365e-06/0.2862, allocations: 0 / 430.5 MB, free: 7.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001516/0.2864, allocations: 37.7 kB / 430.5 MB, free: 7.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.98e-05/0.2864, allocations: 55.34 kB / 430.6 MB, free: 7.504 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.526e-05/0.2865, allocations: 101.8 kB / 430.7 MB, free: 7.395 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.331e-05/0.2865, allocations: 29.64 kB / 430.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.2866, allocations: 84.14 kB / 430.8 MB, free: 7.273 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.305e-05/0.2867, allocations: 0 / 430.8 MB, free: 7.273 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.289e-05/0.2867, allocations: 13.72 kB / 430.8 MB, free: 7.254 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.2869, allocations: 310.8 kB / 431.1 MB, free: 6.941 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.847e-06/0.2869, allocations: 0 / 431.1 MB, free: 6.941 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.604e-06/0.2869, allocations: 4 kB / 431.1 MB, free: 6.938 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.624e-05/0.2869, allocations: 13.05 kB / 431.1 MB, free: 6.922 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.2869, allocations: 0 / 431.1 MB, free: 6.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.753e-05/0.287, allocations: 45.75 kB / 431.2 MB, free: 6.871 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.287, allocations: 4 kB / 431.2 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.287, allocations: 4 kB / 431.2 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.287, allocations: 0 / 431.2 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.916e-05/0.287, allocations: 3.984 kB / 431.2 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.287, allocations: 4 kB / 431.2 MB, free: 6.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.849e-05/0.2871, allocations: 0 / 431.2 MB, free: 6.855 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.2871, allocations: 0 / 431.2 MB, free: 6.855 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001632/0.2872, allocations: 109.9 kB / 431.3 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.574e-05/0.2872, allocations: 11.89 kB / 431.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.227e-05/0.2873, allocations: 11.14 kB / 431.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.2873, allocations: 0 / 431.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.2873, allocations: 0 / 431.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.2873, allocations: 0 / 431.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001139/0.2874, allocations: 97.33 kB / 431.4 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.2874, allocations: 0 / 431.4 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.65e-06/0.2874, allocations: 3.984 kB / 431.4 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.2874, allocations: 3.938 kB / 431.4 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.2874, allocations: 4 kB / 431.4 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2874, allocations: 4 kB / 431.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2874, allocations: 0 / 431.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.658e-05/0.2875, allocations: 61.08 kB / 431.5 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.943e-06/0.2875, allocations: 3.938 kB / 431.5 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.485e-05/0.2875, allocations: 7.922 kB / 431.5 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.191e-05/0.2875, allocations: 0 / 431.5 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.389e-05/0.2876, allocations: 0 / 431.5 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/0.2876, allocations: 4 kB / 431.5 MB, free: 6.48 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.977e-05/0.2876, allocations: 87.22 kB / 431.6 MB, free: 6.395 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2876, allocations: 0 / 431.6 MB, free: 6.395 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004728/0.2881, allocations: 127.6 kB / 431.7 MB, free: 6.27 MB / 334.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: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001219/0.2893, allocations: 499.8 kB / 432.2 MB, free: 5.859 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 8.11e-05/0.2894, allocations: 8 kB / 432.2 MB, free: 5.852 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2894, allocations: 0 / 432.2 MB, free: 5.852 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 1.141e-05/0.2894, allocations: 7.938 kB / 432.2 MB, free: 5.844 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001433/0.2895, allocations: 6.797 kB / 432.2 MB, free: 5.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003095/0.2898, allocations: 136.6 kB / 432.4 MB, free: 5.676 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.643e-05/0.2899, allocations: 63.2 kB / 432.4 MB, free: 5.594 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.511e-05/0.2899, allocations: 15.38 kB / 432.4 MB, free: 5.578 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2899, allocations: 4.125 kB / 432.5 MB, free: 5.574 MB / 334.1 MB Notification: Performance of Templates: time 0.006063/0.296, allocations: 3.097 MB / 435.6 MB, free: 2.477 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.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: 8.215392678976059]