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.001433/0.001433, allocations: 99.39 kB / 18.35 MB, free: 4.648 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.001573/0.001573, allocations: 192 kB / 19.29 MB, free: 3.715 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.36/1.36, allocations: 205.1 MB / 225.2 MB, free: 12.29 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.001182/0.001182, allocations: 59.91 kB / 282.1 MB, free: 2.508 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1025, allocations: 46.62 MB / 328.7 MB, free: 3.816 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.003173/0.1057, allocations: 1.193 MB / 329.9 MB, free: 2.609 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004393/0.1101, allocations: 2.002 MB / 331.9 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.643e-05/0.1102, allocations: 0 / 331.9 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 1.499e-05/0.1102, allocations: 0 / 331.9 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00172/0.112, allocations: 434.6 kB / 332.3 MB, free: 172 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.687e-05/0.112, allocations: 7.984 kB / 332.3 MB, free: 164 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 5.105e-05/0.1121, allocations: 7.938 kB / 332.3 MB, free: 156 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.258e-05/0.1121, allocations: 4 kB / 332.4 MB, free: 152 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.277e-05/0.1122, allocations: 7.938 kB / 332.4 MB, free: 144 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002222/0.1124, allocations: 11.92 kB / 332.4 MB, free: 132 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.161e-05/0.1124, allocations: 4 kB / 332.4 MB, free: 128 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008399/0.1133, allocations: 471.5 kB / 332.8 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.634e-05/0.1133, allocations: 7.984 kB / 332.8 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.938e-05/0.1134, allocations: 3.938 kB / 332.8 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006476/0.114, allocations: 339.5 kB / 333.2 MB, free: 15.32 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.114, allocations: 0 / 333.2 MB, free: 15.32 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.114, allocations: 0 / 333.2 MB, free: 15.32 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.1141, allocations: 0 / 333.2 MB, free: 15.32 MB / 286.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.0005992/0.1147, allocations: 411.3 kB / 333.6 MB, free: 14.87 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.1147, allocations: 8.031 kB / 333.6 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.219e-05/0.1148, allocations: 80.22 kB / 333.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002227/0.115, allocations: 247.6 kB / 333.9 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.99e-05/0.1151, allocations: 150.9 kB / 334.1 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.557e-05/0.1152, allocations: 158.7 kB / 334.2 MB, free: 14.2 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.345e-05/0.1153, allocations: 105 kB / 334.3 MB, free: 14.09 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.587e-05/0.1154, allocations: 75.28 kB / 334.4 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.22e-05/0.1155, allocations: 150.6 kB / 334.5 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.046e-05/0.1155, allocations: 150.6 kB / 334.7 MB, free: 13.72 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.339e-05/0.1156, allocations: 154.5 kB / 334.8 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004154/0.1161, allocations: 453.9 kB / 335.3 MB, free: 13.07 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001156/0.1162, allocations: 165.1 kB / 335.4 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.686e-05/0.1162, allocations: 88.08 kB / 335.5 MB, free: 12.81 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.274e-05/0.1163, allocations: 75.28 kB / 335.6 MB, free: 12.74 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001706/0.1165, allocations: 51.34 kB / 335.6 MB, free: 12.68 MB / 286.1 MB Notification: Performance of pre-optimization done (n=1): time 2.295e-06/0.1165, allocations: 0 / 335.6 MB, free: 12.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001337/0.1166, allocations: 33.7 kB / 335.7 MB, free: 12.64 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.112e-05/0.1167, allocations: 51.41 kB / 335.7 MB, free: 12.57 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.1168, allocations: 105.8 kB / 335.8 MB, free: 12.46 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.1168, allocations: 33.64 kB / 335.9 MB, free: 12.42 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.292e-05/0.1169, allocations: 80.14 kB / 335.9 MB, free: 12.34 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.971e-05/0.1169, allocations: 11.89 kB / 336 MB, free: 12.33 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.012e-05/0.117, allocations: 13.84 kB / 336 MB, free: 12.31 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002742/0.1172, allocations: 314.8 kB / 336.3 MB, free: 11.99 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.208e-05/0.1173, allocations: 3.938 kB / 336.3 MB, free: 11.99 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.572e-06/0.1173, allocations: 0 / 336.3 MB, free: 11.99 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.965e-05/0.1173, allocations: 8.859 kB / 336.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1173, allocations: 0 / 336.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.674e-05/0.1174, allocations: 41.62 kB / 336.3 MB, free: 11.93 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.1175, allocations: 4 kB / 336.3 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.1175, allocations: 8.094 kB / 336.3 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.1175, allocations: 0 / 336.3 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.474e-05/0.1176, allocations: 0 / 336.3 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.1176, allocations: 0 / 336.3 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.86e-05/0.1176, allocations: 0 / 336.3 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.066e-06/0.1176, allocations: 4.125 kB / 336.3 MB, free: 11.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001588/0.1178, allocations: 113.8 kB / 336.5 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.711e-05/0.1178, allocations: 3.984 kB / 336.5 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.118e-05/0.1179, allocations: 11.06 kB / 336.5 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.1179, allocations: 4 kB / 336.5 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.1179, allocations: 0 / 336.5 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.1179, allocations: 4 kB / 336.5 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001698/0.1181, allocations: 153.6 kB / 336.6 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1181, allocations: 0 / 336.6 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.689e-06/0.1181, allocations: 0 / 336.6 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.264e-06/0.1181, allocations: 8 kB / 336.6 MB, free: 11.56 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.1182, allocations: 0 / 336.6 MB, free: 11.56 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.1182, allocations: 0 / 336.6 MB, free: 11.56 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1182, allocations: 0 / 336.6 MB, free: 11.56 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001027/0.1183, allocations: 65.06 kB / 336.7 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.875e-05/0.1184, allocations: 81.11 kB / 336.8 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.622e-05/0.1184, allocations: 0 / 336.8 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.039e-05/0.1184, allocations: 0 / 336.8 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.23e-05/0.1184, allocations: 3.938 kB / 336.8 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.1184, allocations: 3.938 kB / 336.8 MB, free: 11.37 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.475e-05/0.1185, allocations: 83.27 kB / 336.9 MB, free: 11.29 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1185, allocations: 0 / 336.9 MB, free: 11.29 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005955/0.1191, allocations: 132 kB / 337 MB, free: 11.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 (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.001187/0.1203, allocations: 463.1 kB / 337.4 MB, free: 10.71 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 6.699e-05/0.1204, allocations: 7.984 kB / 337.5 MB, free: 10.7 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.1204, allocations: 0 / 337.5 MB, free: 10.7 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 1.114e-05/0.1204, allocations: 8 kB / 337.5 MB, free: 10.7 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002194/0.1207, allocations: 3.938 kB / 337.5 MB, free: 10.69 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002804/0.1209, allocations: 114.7 kB / 337.6 MB, free: 10.55 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.1212, allocations: 0.6729 MB / 338.3 MB, free: 9.855 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.175e-05/0.1213, allocations: 7.984 kB / 338.3 MB, free: 9.848 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.543e-05/0.1213, allocations: 15.44 kB / 338.3 MB, free: 9.832 MB / 286.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1213, allocations: 0 / 338.3 MB, free: 9.832 MB / 286.1 MB Notification: Performance of Templates: time 0.008115/0.1294, allocations: 2.778 MB / 341.1 MB, free: 7.051 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches