Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 103.4 kB / 17.16 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.445/1.445, allocations: 205.1 MB / 223.9 MB, free: 12.39 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001274, allocations: 43.94 kB / 280 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1123, allocations: 46.62 MB / 326.6 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002575/0.1149, allocations: 1.257 MB / 327.8 MB, free: 3.621 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00338/0.1183, allocations: 2.031 MB / 329.9 MB, free: 1.578 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.167e-05/0.1184, allocations: 0 / 329.9 MB, free: 1.578 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 3.108e-05/0.1184, allocations: 0 / 329.9 MB, free: 1.578 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001594/0.1201, allocations: 331.2 kB / 330.2 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.697e-05/0.1201, allocations: 4 kB / 330.2 MB, free: 1.25 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 4.553e-05/0.1201, allocations: 7.938 kB / 330.2 MB, free: 1.242 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.061e-05/0.1202, allocations: 7.984 kB / 330.2 MB, free: 1.234 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.547e-05/0.1202, allocations: 7.938 kB / 330.2 MB, free: 1.227 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001102/0.1203, allocations: 7.984 kB / 330.2 MB, free: 1.219 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.919e-06/0.1204, allocations: 0 / 330.2 MB, free: 1.219 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006725/0.121, allocations: 427.6 kB / 330.6 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.319e-05/0.1211, allocations: 3.938 kB / 330.6 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 2.489e-05/0.1211, allocations: 7.938 kB / 330.7 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004448/0.1215, allocations: 339.5 kB / 331 MB, free: 468 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.952e-06/0.1216, allocations: 3.938 kB / 331 MB, free: 464 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.021e-06/0.1216, allocations: 4 kB / 331 MB, free: 460 kB / 270.1 MB Notification: Performance of Transformations before backend: time 4.409e-06/0.1216, allocations: 0 / 331 MB, free: 460 kB / 270.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.0004532/0.122, allocations: 403.4 kB / 331.4 MB, free: 8 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.1221, allocations: 8.031 kB / 331.4 MB, free: 0 / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.669e-05/0.1222, allocations: 76.22 kB / 331.5 MB, free: 15.93 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001624/0.1223, allocations: 251.9 kB / 331.7 MB, free: 15.64 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.778e-05/0.1224, allocations: 150.9 kB / 331.9 MB, free: 15.49 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.97e-05/0.1224, allocations: 162.6 kB / 332 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.429e-05/0.1225, allocations: 101 kB / 332.1 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.675e-05/0.1225, allocations: 75.28 kB / 332.2 MB, free: 15.15 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.432e-05/0.1226, allocations: 150.6 kB / 332.3 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.292e-05/0.1227, allocations: 154.6 kB / 332.5 MB, free: 14.85 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.168e-05/0.1227, allocations: 154.6 kB / 332.6 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003214/0.123, allocations: 445.9 kB / 333.1 MB, free: 14.21 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001149/0.1232, allocations: 177.1 kB / 333.3 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.556e-05/0.1232, allocations: 84.08 kB / 333.3 MB, free: 13.95 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.085e-05/0.1232, allocations: 75.28 kB / 333.4 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001878/0.1234, allocations: 47.41 kB / 333.5 MB, free: 13.81 MB / 286.1 MB Notification: Performance of pre-optimization done (n=1): time 2.385e-06/0.1235, allocations: 3.938 kB / 333.5 MB, free: 13.81 MB / 286.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001363/0.1236, allocations: 33.64 kB / 333.5 MB, free: 13.77 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.1236, allocations: 51.41 kB / 333.5 MB, free: 13.71 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.8e-05/0.1237, allocations: 105.8 kB / 333.6 MB, free: 13.59 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.345e-05/0.1238, allocations: 25.7 kB / 333.7 MB, free: 13.56 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.742e-05/0.1238, allocations: 88.27 kB / 333.8 MB, free: 13.47 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.739e-05/0.1238, allocations: 3.906 kB / 333.8 MB, free: 13.47 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.272e-05/0.1239, allocations: 13.72 kB / 333.8 MB, free: 13.45 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.124, allocations: 314.9 kB / 334.1 MB, free: 13.13 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.877e-06/0.124, allocations: 0 / 334.1 MB, free: 13.13 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.476e-06/0.124, allocations: 8 kB / 334.1 MB, free: 13.12 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.356e-05/0.124, allocations: 12.8 kB / 334.1 MB, free: 13.11 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.1241, allocations: 4.062 kB / 334.1 MB, free: 13.11 MB / 286.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.43e-05/0.1241, allocations: 41.62 kB / 334.1 MB, free: 13.06 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.1241, allocations: 4 kB / 334.2 MB, free: 13.05 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.1241, allocations: 0 / 334.2 MB, free: 13.05 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.1242, allocations: 0 / 334.2 MB, free: 13.05 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.254e-05/0.1242, allocations: 0 / 334.2 MB, free: 13.05 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.1242, allocations: 0 / 334.2 MB, free: 13.05 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.525e-05/0.1242, allocations: 0 / 334.2 MB, free: 13.05 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.75e-06/0.1242, allocations: 4 kB / 334.2 MB, free: 13.05 MB / 286.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 8.016e-05/0.1243, allocations: 113.8 kB / 334.3 MB, free: 12.93 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.127e-06/0.1243, allocations: 192 / 334.3 MB, free: 12.93 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.091e-05/0.1244, allocations: 22.98 kB / 334.3 MB, free: 12.9 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.1244, allocations: 0 / 334.3 MB, free: 12.9 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.1244, allocations: 0 / 334.3 MB, free: 12.9 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.1244, allocations: 0 / 334.3 MB, free: 12.9 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001166/0.1245, allocations: 157.6 kB / 334.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1245, allocations: 0 / 334.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.789e-06/0.1245, allocations: 0 / 334.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.1245, allocations: 3.938 kB / 334.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.611e-06/0.1246, allocations: 0 / 334.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1246, allocations: 4 kB / 334.5 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1246, allocations: 0 / 334.5 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.728e-05/0.1246, allocations: 65.06 kB / 334.5 MB, free: 12.61 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.798e-05/0.1247, allocations: 77.11 kB / 334.6 MB, free: 12.52 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.1247, allocations: 3.938 kB / 334.6 MB, free: 12.51 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.186e-05/0.1247, allocations: 0 / 334.6 MB, free: 12.51 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.36e-05/0.1247, allocations: 4 kB / 334.6 MB, free: 12.51 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.983e-06/0.1247, allocations: 4.031 kB / 334.6 MB, free: 12.5 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.878e-05/0.1248, allocations: 87.27 kB / 334.7 MB, free: 12.42 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1248, allocations: 0 / 334.7 MB, free: 12.42 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004081/0.1252, allocations: 120 kB / 334.8 MB, free: 12.3 MB / 286.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.0009765/0.1262, allocations: 467.3 kB / 335.3 MB, free: 11.85 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 7.465e-05/0.1263, allocations: 15.92 kB / 335.3 MB, free: 11.84 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1263, allocations: 0 / 335.3 MB, free: 11.84 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 5.73e-06/0.1263, allocations: 4.062 kB / 335.3 MB, free: 11.83 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001426/0.1265, allocations: 7.938 kB / 335.3 MB, free: 11.82 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00024/0.1267, allocations: 116.2 kB / 335.4 MB, free: 11.69 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002278/0.1269, allocations: 0.6731 MB / 336.1 MB, free: 10.99 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.987e-05/0.127, allocations: 11.92 kB / 336.1 MB, free: 10.98 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.88e-05/0.127, allocations: 15.5 kB / 336.1 MB, free: 10.96 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.127, allocations: 0 / 336.1 MB, free: 10.96 MB / 286.1 MB Notification: Performance of Templates: time 0.005803/0.1328, allocations: 2.758 MB / 338.9 MB, free: 8.199 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","../files/Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches