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.00107/0.00107, allocations: 95.92 kB / 16.95 MB, free: 6.469 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.001347/0.001347, allocations: 183.2 kB / 17.84 MB, free: 6.016 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.556/1.556, allocations: 205.4 MB / 224 MB, free: 13.08 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.0004326/0.0004326, allocations: 8 kB / 280.8 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1119, allocations: 47.58 MB / 328.3 MB, free: 4.078 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001339/0.1133, allocations: 0.918 MB / 329.3 MB, free: 3.148 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003068/0.1163, allocations: 1.857 MB / 331.1 MB, free: 1.281 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.662e-05/0.1164, allocations: 0 / 331.1 MB, free: 1.281 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 1.419e-05/0.1164, allocations: 0 / 331.1 MB, free: 1.281 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001173/0.1176, allocations: 327.1 kB / 331.4 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.036e-05/0.1176, allocations: 4 kB / 331.4 MB, free: 0.957 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 6.085e-05/0.1177, allocations: 7.938 kB / 331.4 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.493e-05/0.1178, allocations: 0 / 331.4 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.276e-05/0.1178, allocations: 7.984 kB / 331.5 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001114/0.1179, allocations: 10.64 kB / 331.5 MB, free: 0.9336 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.057e-06/0.1179, allocations: 4 kB / 331.5 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007246/0.1186, allocations: 399.5 kB / 331.9 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.3e-05/0.1187, allocations: 4 kB / 331.9 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.147e-05/0.1187, allocations: 25.7 kB / 331.9 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005047/0.1192, allocations: 223.6 kB / 332.1 MB, free: 292 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.237e-06/0.1192, allocations: 0 / 332.1 MB, free: 292 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1192, allocations: 0 / 332.1 MB, free: 292 kB / 270.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.1193, allocations: 0 / 332.1 MB, free: 292 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.0004872/0.1197, allocations: 395.3 kB / 332.5 MB, free: 15.85 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.1198, allocations: 16.02 kB / 332.5 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.831e-05/0.1199, allocations: 83.19 kB / 332.6 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001594/0.12, allocations: 242.6 kB / 332.8 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.605e-05/0.1201, allocations: 158.5 kB / 333 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.601e-05/0.1202, allocations: 150.6 kB / 333.1 MB, free: 15.17 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.693e-05/0.1202, allocations: 104.9 kB / 333.2 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.131e-05/0.1203, allocations: 75.28 kB / 333.3 MB, free: 14.99 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.616e-05/0.1203, allocations: 158.5 kB / 333.5 MB, free: 14.83 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.734e-05/0.1204, allocations: 154.6 kB / 333.6 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.35e-05/0.1205, allocations: 154.6 kB / 333.8 MB, free: 14.53 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003089/0.1208, allocations: 441.9 kB / 334.2 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.441e-05/0.1209, allocations: 173.1 kB / 334.4 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.016e-05/0.1209, allocations: 88.09 kB / 334.4 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.744e-05/0.121, allocations: 79.27 kB / 334.5 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001525/0.1211, allocations: 39.42 kB / 334.6 MB, free: 13.65 MB / 286.1 MB Notification: Performance of pre-optimization done (n=1): time 2.254e-06/0.1211, allocations: 0 / 334.6 MB, free: 13.65 MB / 286.1 MB Notification: Performance of matching and sorting (n=1): time 0.000164/0.1213, allocations: 49.56 kB / 334.6 MB, free: 13.59 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.1214, allocations: 51.41 kB / 334.7 MB, free: 13.53 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.32e-05/0.1215, allocations: 101.8 kB / 334.8 MB, free: 13.42 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.1215, allocations: 25.7 kB / 334.8 MB, free: 13.39 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.053e-05/0.1216, allocations: 84.14 kB / 334.9 MB, free: 13.3 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.58e-05/0.1216, allocations: 0 / 334.9 MB, free: 13.3 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.545e-06/0.1216, allocations: 0 / 334.9 MB, free: 13.3 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.1217, allocations: 314.8 kB / 335.2 MB, free: 12.99 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.434e-06/0.1217, allocations: 8.125 kB / 335.2 MB, free: 12.98 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.077e-06/0.1217, allocations: 0 / 335.2 MB, free: 12.98 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.407e-05/0.1218, allocations: 0 / 335.2 MB, free: 12.98 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1218, allocations: 0 / 335.2 MB, free: 12.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.474e-05/0.1218, allocations: 49.5 kB / 335.2 MB, free: 12.93 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.1218, allocations: 4 kB / 335.2 MB, free: 12.92 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.1219, allocations: 0 / 335.2 MB, free: 12.92 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.1219, allocations: 0 / 335.2 MB, free: 12.92 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.597e-05/0.1219, allocations: 3.984 kB / 335.2 MB, free: 12.92 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.391e-06/0.1219, allocations: 4.094 kB / 335.2 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.832e-05/0.1219, allocations: 4 kB / 335.2 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.62e-06/0.122, allocations: 0 / 335.2 MB, free: 12.91 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.723e-05/0.122, allocations: 105.8 kB / 335.3 MB, free: 12.8 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.707e-06/0.1221, allocations: 3.953 kB / 335.4 MB, free: 12.79 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.136e-05/0.1221, allocations: 11.08 kB / 335.4 MB, free: 12.78 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1221, allocations: 0 / 335.4 MB, free: 12.78 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.1221, allocations: 0 / 335.4 MB, free: 12.78 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1221, allocations: 3.938 kB / 335.4 MB, free: 12.77 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001369/0.1223, allocations: 157.7 kB / 335.5 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.1223, allocations: 0 / 335.5 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.286e-06/0.1223, allocations: 0 / 335.5 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.1223, allocations: 0 / 335.5 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.1223, allocations: 3.953 kB / 335.5 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.1223, allocations: 3.984 kB / 335.5 MB, free: 12.56 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.1223, allocations: 3.938 kB / 335.5 MB, free: 12.56 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.997e-05/0.1224, allocations: 57.14 kB / 335.6 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.879e-05/0.1225, allocations: 81.14 kB / 335.7 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.513e-05/0.1225, allocations: 7.984 kB / 335.7 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.671e-05/0.1225, allocations: 7.953 kB / 335.7 MB, free: 12.37 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.138e-05/0.1225, allocations: 0 / 335.7 MB, free: 12.37 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.644e-06/0.1225, allocations: 0 / 335.7 MB, free: 12.37 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.504e-05/0.1226, allocations: 83.28 kB / 335.8 MB, free: 12.29 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1226, allocations: 0 / 335.8 MB, free: 12.29 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004823/0.1231, allocations: 128 kB / 335.9 MB, free: 12.16 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 (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.00102/0.1241, allocations: 474.6 kB / 336.4 MB, free: 11.71 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 7.656e-05/0.1242, allocations: 7.938 kB / 336.4 MB, free: 11.7 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1242, allocations: 0 / 336.4 MB, free: 11.7 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.154e-06/0.1242, allocations: 3.984 kB / 336.4 MB, free: 11.7 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001464/0.1244, allocations: 8 kB / 336.4 MB, free: 11.69 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002879/0.1247, allocations: 116.7 kB / 336.5 MB, free: 11.55 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002878/0.125, allocations: 0.6731 MB / 337.2 MB, free: 10.85 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.975e-05/0.125, allocations: 7.984 kB / 337.2 MB, free: 10.84 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.042e-05/0.125, allocations: 11.44 kB / 337.2 MB, free: 10.83 MB / 286.1 MB Notification: Performance of SimCode: time 3.61e-07/0.125, allocations: 3.938 kB / 337.2 MB, free: 10.82 MB / 286.1 MB Notification: Performance of Templates: time 0.006291/0.1313, allocations: 2.73 MB / 339.9 MB, free: 8.09 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