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.001105/0.001105, allocations: 99.95 kB / 17.3 MB, free: 6.344 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.001201/0.001201, allocations: 179 kB / 18.21 MB, free: 5.531 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.541/1.541, allocations: 205.4 MB / 224.4 MB, free: 13.06 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.0004196/0.0004197, allocations: 8 kB / 281.4 MB, free: 3.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08258/0.08301, allocations: 47.59 MB / 329 MB, free: 3.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001145/0.0842, allocations: 0.918 MB / 329.9 MB, free: 2.844 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002621/0.08683, allocations: 1.996 MB / 331.9 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.297e-05/0.08686, allocations: 0 / 331.9 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 1.466e-05/0.08688, allocations: 3.938 kB / 331.9 MB, free: 0.832 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008244/0.08771, allocations: 323.3 kB / 332.2 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.995e-05/0.08774, allocations: 3.984 kB / 332.2 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 3.393e-05/0.08778, allocations: 11.94 kB / 332.2 MB, free: 0.5 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.145e-05/0.08782, allocations: 4 kB / 332.2 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.594e-05/0.08784, allocations: 0 / 332.2 MB, free: 0.4961 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.712e-05/0.08794, allocations: 11.92 kB / 332.2 MB, free: 496 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.146e-06/0.08795, allocations: 0 / 332.2 MB, free: 496 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005478/0.0885, allocations: 435.5 kB / 332.6 MB, free: 60 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.013e-05/0.08853, allocations: 0 / 332.6 MB, free: 60 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 2.901e-05/0.08856, allocations: 29.7 kB / 332.7 MB, free: 24 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004196/0.08899, allocations: 339.5 kB / 333 MB, free: 15.69 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.089, allocations: 4 kB / 333 MB, free: 15.68 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.08901, allocations: 4 kB / 333 MB, free: 15.68 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.146e-06/0.08902, allocations: 0 / 333 MB, free: 15.68 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.0003549/0.08938, allocations: 395.5 kB / 333.4 MB, free: 15.25 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.08941, allocations: 8.031 kB / 333.4 MB, free: 15.24 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.198e-05/0.08947, allocations: 87.97 kB / 333.5 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.08961, allocations: 247.9 kB / 333.7 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.087e-05/0.08966, allocations: 150.9 kB / 333.9 MB, free: 14.73 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.431e-05/0.08971, allocations: 166.6 kB / 334 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.998e-05/0.08977, allocations: 101 kB / 334.1 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.205e-05/0.0898, allocations: 75.28 kB / 334.2 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.869e-05/0.08985, allocations: 154.5 kB / 334.4 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.798e-05/0.0899, allocations: 150.6 kB / 334.5 MB, free: 14.08 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.852e-05/0.08995, allocations: 154.5 kB / 334.7 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000269/0.09023, allocations: 453.9 kB / 335.1 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.079e-05/0.09031, allocations: 165.1 kB / 335.3 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.329e-05/0.09035, allocations: 88.08 kB / 335.4 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.09039, allocations: 75.28 kB / 335.4 MB, free: 13.1 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001595/0.09055, allocations: 51.34 kB / 335.5 MB, free: 13.04 MB / 286.1 MB Notification: Performance of pre-optimization done (n=1): time 2.465e-06/0.09056, allocations: 0 / 335.5 MB, free: 13.04 MB / 286.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001421/0.09071, allocations: 33.7 kB / 335.5 MB, free: 13 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.31e-05/0.09077, allocations: 51.41 kB / 335.6 MB, free: 12.94 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.609e-05/0.09088, allocations: 101.8 kB / 335.7 MB, free: 12.83 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.0909, allocations: 25.7 kB / 335.7 MB, free: 12.8 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.415e-05/0.09094, allocations: 92.27 kB / 335.8 MB, free: 12.7 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.126e-05/0.09095, allocations: 0 / 335.8 MB, free: 12.7 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.053e-05/0.09098, allocations: 9.719 kB / 335.8 MB, free: 12.69 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.774e-05/0.09108, allocations: 310.8 kB / 336.1 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.758e-06/0.0911, allocations: 0 / 336.1 MB, free: 12.38 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.781e-06/0.09111, allocations: 7.938 kB / 336.1 MB, free: 12.37 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.768e-05/0.09113, allocations: 4.859 kB / 336.1 MB, free: 12.36 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.09114, allocations: 0 / 336.1 MB, free: 12.36 MB / 286.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.168e-05/0.0912, allocations: 57.53 kB / 336.2 MB, free: 12.3 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.09121, allocations: 4 kB / 336.2 MB, free: 12.29 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.09122, allocations: 0 / 336.2 MB, free: 12.29 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/0.09124, allocations: 0 / 336.2 MB, free: 12.29 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.843e-05/0.09126, allocations: 0 / 336.2 MB, free: 12.29 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.09127, allocations: 0 / 336.2 MB, free: 12.29 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.412e-05/0.09129, allocations: 4 kB / 336.2 MB, free: 12.29 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.849e-06/0.0913, allocations: 0 / 336.2 MB, free: 12.29 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 6.171e-05/0.09136, allocations: 113.8 kB / 336.3 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.722e-06/0.09138, allocations: 0 / 336.3 MB, free: 12.17 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.708e-05/0.09141, allocations: 19.09 kB / 336.3 MB, free: 12.14 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.09142, allocations: 0 / 336.3 MB, free: 12.14 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.09143, allocations: 0 / 336.3 MB, free: 12.14 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-06/0.09143, allocations: 0 / 336.3 MB, free: 12.14 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.756e-05/0.09153, allocations: 157.6 kB / 336.5 MB, free: 11.94 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.09154, allocations: 0 / 336.5 MB, free: 11.94 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.936e-06/0.09155, allocations: 0 / 336.5 MB, free: 11.94 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.09155, allocations: 0 / 336.5 MB, free: 11.94 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.038e-06/0.09156, allocations: 3.938 kB / 336.5 MB, free: 11.94 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.09157, allocations: 4 kB / 336.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.09158, allocations: 4 kB / 336.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.159e-05/0.09164, allocations: 65.08 kB / 336.5 MB, free: 11.85 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.965e-05/0.09168, allocations: 81.09 kB / 336.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.022e-05/0.0917, allocations: 0 / 336.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.165e-05/0.09171, allocations: 4 kB / 336.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.438e-06/0.09173, allocations: 0 / 336.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-06/0.09173, allocations: 3.938 kB / 336.6 MB, free: 11.74 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.927e-05/0.09178, allocations: 87.3 kB / 336.7 MB, free: 11.66 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.09178, allocations: 0 / 336.7 MB, free: 11.66 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003617/0.09215, allocations: 131.9 kB / 336.8 MB, free: 11.53 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.0008126/0.09297, allocations: 462.7 kB / 337.3 MB, free: 11.08 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 5.337e-05/0.09303, allocations: 4 kB / 337.3 MB, free: 11.08 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.09304, allocations: 0 / 337.3 MB, free: 11.08 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.508e-06/0.09305, allocations: 0 / 337.3 MB, free: 11.08 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001301/0.09319, allocations: 16.06 kB / 337.3 MB, free: 11.06 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002178/0.09341, allocations: 116.5 kB / 337.4 MB, free: 10.92 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002245/0.09365, allocations: 0.6731 MB / 338.1 MB, free: 10.22 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.597e-05/0.09368, allocations: 7.984 kB / 338.1 MB, free: 10.21 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.754e-05/0.0937, allocations: 15.42 kB / 338.1 MB, free: 10.2 MB / 286.1 MB Notification: Performance of SimCode: time 2.6e-07/0.09371, allocations: 0 / 338.1 MB, free: 10.2 MB / 286.1 MB Notification: Performance of Templates: time 0.005637/0.09935, allocations: 2.754 MB / 340.9 MB, free: 7.441 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