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.001436/0.001436, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 221.5 MB / 230.3 MB, free: 7.586 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009275/0.0009272, allocations: 91.45 kB / 281.2 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.692e-05/1.695e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.113, allocations: 50.42 MB / 387.4 MB, free: 7.598 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3523/0.4653, allocations: 78.38 MB / 465.8 MB, free: 0.5078 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.4655, allocations: 67.97 kB / 465.9 MB, free: 452 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01682/0.4824, allocations: 6.201 MB / 472.1 MB, free: 10.25 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4824, allocations: 0 / 472.1 MB, free: 10.25 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.4824, allocations: 0 / 472.1 MB, free: 10.25 MB / 346.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.0004749/0.4829, allocations: 430.2 kB / 472.5 MB, free: 9.785 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.483, allocations: 8.031 kB / 472.5 MB, free: 9.777 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.458e-05/0.483, allocations: 83.23 kB / 472.6 MB, free: 9.695 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001701/0.4832, allocations: 239 kB / 472.8 MB, free: 9.422 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.107e-05/0.4833, allocations: 150.6 kB / 473 MB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.576e-05/0.4833, allocations: 154.6 kB / 473.1 MB, free: 9.121 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.095e-05/0.4834, allocations: 154.5 kB / 473.3 MB, free: 8.969 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.783e-05/0.4834, allocations: 105.7 kB / 473.4 MB, free: 8.859 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.619e-05/0.4835, allocations: 75.28 kB / 473.5 MB, free: 8.785 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.191e-05/0.4835, allocations: 158.5 kB / 473.6 MB, free: 8.629 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.707e-05/0.4836, allocations: 158.5 kB / 473.8 MB, free: 8.473 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002318/0.4838, allocations: 426.5 kB / 474.2 MB, free: 8.02 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.712e-05/0.4839, allocations: 169.1 kB / 474.4 MB, free: 7.844 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.952e-05/0.4839, allocations: 84.14 kB / 474.4 MB, free: 7.758 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.484, allocations: 75.28 kB / 474.5 MB, free: 7.684 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.496e-05/0.4841, allocations: 47.34 kB / 474.6 MB, free: 7.625 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 2.304e-06/0.4841, allocations: 0 / 474.6 MB, free: 7.625 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001123/0.4842, allocations: 33.61 kB / 474.6 MB, free: 7.586 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.813e-05/0.4842, allocations: 51.41 kB / 474.6 MB, free: 7.523 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.505e-05/0.4843, allocations: 109 kB / 474.7 MB, free: 7.41 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.05e-05/0.4843, allocations: 25.7 kB / 474.8 MB, free: 7.379 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.565e-05/0.4844, allocations: 80.14 kB / 474.9 MB, free: 7.297 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.374e-05/0.4844, allocations: 4 kB / 474.9 MB, free: 7.293 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.914e-06/0.4844, allocations: 0 / 474.9 MB, free: 7.293 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.972e-05/0.4845, allocations: 318.8 kB / 475.2 MB, free: 6.973 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.352e-06/0.4845, allocations: 0 / 475.2 MB, free: 6.973 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.757e-06/0.4845, allocations: 0 / 475.2 MB, free: 6.973 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.348e-05/0.4845, allocations: 4.062 kB / 475.2 MB, free: 6.969 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.4845, allocations: 0 / 475.2 MB, free: 6.969 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.751e-05/0.4846, allocations: 37.69 kB / 475.2 MB, free: 6.926 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.4846, allocations: 5.562 kB / 475.2 MB, free: 6.922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.4846, allocations: 0 / 475.2 MB, free: 6.922 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.4846, allocations: 0 / 475.2 MB, free: 6.922 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.51e-05/0.4847, allocations: 3.938 kB / 475.2 MB, free: 6.918 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.397e-06/0.4847, allocations: 0 / 475.2 MB, free: 6.918 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.455e-05/0.4847, allocations: 0 / 475.2 MB, free: 6.918 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.4847, allocations: 4 kB / 475.2 MB, free: 6.914 MB / 346.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 () * 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 6.506e-05/0.4848, allocations: 109 kB / 475.3 MB, free: 6.801 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.454e-06/0.4848, allocations: 3.938 kB / 475.3 MB, free: 6.797 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.323e-05/0.4848, allocations: 11.73 kB / 475.3 MB, free: 6.781 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.4848, allocations: 4 kB / 475.3 MB, free: 6.777 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.4848, allocations: 0 / 475.3 MB, free: 6.777 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-06/0.4849, allocations: 0 / 475.3 MB, free: 6.777 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001066/0.485, allocations: 130.2 kB / 475.5 MB, free: 6.613 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.485, allocations: 7.984 kB / 475.5 MB, free: 6.605 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.476e-06/0.485, allocations: 0 / 475.5 MB, free: 6.605 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.485, allocations: 0 / 475.5 MB, free: 6.605 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.678e-06/0.485, allocations: 4 kB / 475.5 MB, free: 6.602 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.485, allocations: 0 / 475.5 MB, free: 6.602 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.485, allocations: 0 / 475.5 MB, free: 6.602 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.002e-05/0.4851, allocations: 61.05 kB / 475.5 MB, free: 6.523 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.751e-05/0.4851, allocations: 85.05 kB / 475.6 MB, free: 6.422 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.127e-05/0.4851, allocations: 0 / 475.6 MB, free: 6.422 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.139e-05/0.4852, allocations: 0 / 475.6 MB, free: 6.422 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.659e-06/0.4852, allocations: 4.031 kB / 475.6 MB, free: 6.418 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.457e-06/0.4852, allocations: 4 kB / 475.6 MB, free: 6.414 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.281e-05/0.4852, allocations: 79.28 kB / 475.7 MB, free: 6.336 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.184e-06/0.4852, allocations: 3.938 kB / 475.7 MB, free: 6.332 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000501/0.4857, allocations: 159.8 kB / 475.9 MB, free: 6.176 MB / 346.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 () * 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.0009334/0.4867, allocations: 0.4943 MB / 476.4 MB, free: 5.734 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.055e-05/0.4867, allocations: 8 kB / 476.4 MB, free: 5.727 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4868, allocations: 0 / 476.4 MB, free: 5.727 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.81e-06/0.4868, allocations: 3.938 kB / 476.4 MB, free: 5.723 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000104/0.4869, allocations: 8 kB / 476.4 MB, free: 5.715 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001551/0.487, allocations: 44.02 kB / 476.4 MB, free: 5.648 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001993/0.4872, allocations: 0.6768 MB / 477.1 MB, free: 4.945 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.405e-05/0.4873, allocations: 7.984 kB / 477.1 MB, free: 4.938 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.979e-05/0.4873, allocations: 11.56 kB / 477.1 MB, free: 4.926 MB / 346.7 MB Notification: Performance of SimCode: time 3.1e-07/0.4873, allocations: 4 kB / 477.1 MB, free: 4.922 MB / 346.7 MB Notification: Performance of Templates: time 0.005409/0.4927, allocations: 2.692 MB / 479.8 MB, free: 2.23 MB / 346.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