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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009964/0.0009963, allocations: 180.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.228/1.228, allocations: 223.2 MB / 240.3 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000867/0.000867, allocations: 100.2 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002243/0.0002244, allocations: 7.938 kB / 351.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.191/0.1913, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08738/0.2787, allocations: 79.13 MB / 480.6 MB, free: 1.375 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002012/0.279, allocations: 71.97 kB / 480.7 MB, free: 1.305 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01747/0.2964, allocations: 6.557 MB / 487.2 MB, free: 10.76 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.2965, allocations: 0 / 487.2 MB, free: 10.76 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.2965, allocations: 0 / 487.2 MB, free: 10.76 MB / 362.7 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.0005392/0.297, allocations: 435.1 kB / 487.7 MB, free: 10.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.2971, allocations: 8.031 kB / 487.7 MB, free: 10.28 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.658e-05/0.2972, allocations: 95.06 kB / 487.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001434/0.2973, allocations: 242.4 kB / 488 MB, free: 9.906 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.701e-05/0.2974, allocations: 150.6 kB / 488.1 MB, free: 9.758 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.124e-05/0.2974, allocations: 150.6 kB / 488.3 MB, free: 9.609 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.793e-05/0.2975, allocations: 101 kB / 488.4 MB, free: 9.504 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.657e-05/0.2975, allocations: 79.28 kB / 488.5 MB, free: 9.426 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.82e-05/0.2976, allocations: 158.5 kB / 488.6 MB, free: 9.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.157e-05/0.2976, allocations: 154.5 kB / 488.8 MB, free: 9.117 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.211e-05/0.2977, allocations: 154.5 kB / 488.9 MB, free: 8.965 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002726/0.298, allocations: 446 kB / 489.4 MB, free: 8.48 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.731e-05/0.2981, allocations: 169.1 kB / 489.5 MB, free: 8.305 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.102e-05/0.2981, allocations: 75.28 kB / 489.6 MB, free: 8.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001213/0.2982, allocations: 51.34 kB / 489.6 MB, free: 8.168 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 2.465e-06/0.2982, allocations: 0 / 489.6 MB, free: 8.168 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001384/0.2984, allocations: 33.69 kB / 489.7 MB, free: 8.129 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.714e-05/0.2984, allocations: 51.41 kB / 489.7 MB, free: 8.066 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.931e-05/0.2985, allocations: 105.1 kB / 489.8 MB, free: 7.957 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.2985, allocations: 25.7 kB / 489.9 MB, free: 7.926 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.373e-05/0.2986, allocations: 80.14 kB / 489.9 MB, free: 7.844 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.454e-05/0.2986, allocations: 3.938 kB / 489.9 MB, free: 7.84 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.753e-06/0.2986, allocations: 0 / 489.9 MB, free: 7.84 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.2987, allocations: 326.8 kB / 490.3 MB, free: 7.512 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.752e-06/0.2987, allocations: 0 / 490.3 MB, free: 7.512 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.737e-06/0.2987, allocations: 3.938 kB / 490.3 MB, free: 7.508 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.4e-05/0.2988, allocations: 4.062 kB / 490.3 MB, free: 7.504 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2988, allocations: 0 / 490.3 MB, free: 7.504 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.434e-05/0.2988, allocations: 33.7 kB / 490.3 MB, free: 7.465 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.2988, allocations: 4 kB / 490.3 MB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.2988, allocations: 0 / 490.3 MB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.2989, allocations: 0 / 490.3 MB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.639e-05/0.2989, allocations: 0 / 490.3 MB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.2989, allocations: 4 kB / 490.3 MB, free: 7.457 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.439e-05/0.2989, allocations: 0 / 490.3 MB, free: 7.457 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.632e-06/0.2989, allocations: 3.984 kB / 490.3 MB, free: 7.453 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.455e-05/0.299, allocations: 113.8 kB / 490.4 MB, free: 7.332 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.347e-05/0.299, allocations: 15.84 kB / 490.4 MB, free: 7.316 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.714e-05/0.2991, allocations: 11.06 kB / 490.4 MB, free: 7.305 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2991, allocations: 0 / 490.4 MB, free: 7.305 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2991, allocations: 0 / 490.4 MB, free: 7.305 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.2991, allocations: 0 / 490.4 MB, free: 7.305 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001127/0.2992, allocations: 153.6 kB / 490.6 MB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.2992, allocations: 0 / 490.6 MB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.006e-06/0.2992, allocations: 0 / 490.6 MB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.2992, allocations: 4 kB / 490.6 MB, free: 7.102 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.691e-06/0.2992, allocations: 0 / 490.6 MB, free: 7.102 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.2992, allocations: 0 / 490.6 MB, free: 7.102 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2992, allocations: 0 / 490.6 MB, free: 7.102 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.341e-05/0.2993, allocations: 65.08 kB / 490.7 MB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.956e-05/0.2994, allocations: 77.11 kB / 490.7 MB, free: 6.926 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.421e-05/0.2994, allocations: 4 kB / 490.7 MB, free: 6.922 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.136e-05/0.2994, allocations: 0 / 490.7 MB, free: 6.922 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.17e-05/0.2994, allocations: 8.016 kB / 490.8 MB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.975e-06/0.2994, allocations: 0 / 490.8 MB, free: 6.914 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.59e-05/0.2995, allocations: 87.22 kB / 490.8 MB, free: 6.828 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2995, allocations: 0 / 490.8 MB, free: 6.828 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005167/0.3, allocations: 159.9 kB / 491 MB, free: 6.672 MB / 362.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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009601/0.301, allocations: 0.4994 MB / 491.5 MB, free: 6.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 6.207e-05/0.301, allocations: 8 kB / 491.5 MB, free: 6.242 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.301, allocations: 0 / 491.5 MB, free: 6.242 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.774e-06/0.301, allocations: 7.984 kB / 491.5 MB, free: 6.234 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.172e-05/0.3011, allocations: 3.953 kB / 491.5 MB, free: 6.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002111/0.3014, allocations: 120.6 kB / 491.6 MB, free: 6.082 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000193/0.3016, allocations: 0.677 MB / 492.3 MB, free: 5.379 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.35e-05/0.3016, allocations: 7.984 kB / 492.3 MB, free: 5.371 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.928e-05/0.3016, allocations: 15.42 kB / 492.3 MB, free: 5.355 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3016, allocations: 0 / 492.3 MB, free: 5.355 MB / 362.7 MB Notification: Performance of Templates: time 0.005316/0.3069, allocations: 2.732 MB / 495.1 MB, free: 2.625 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches