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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001174/0.001173, allocations: 104.4 kB / 16.92 MB, free: 5.738 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.001118/0.001118, allocations: 191.4 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009852/0.0009852, allocations: 45.64 kB / 300.6 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0861/0.0871, allocations: 49.44 MB / 350 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002433/0.08959, allocations: 1.189 MB / 351.2 MB, free: 3.215 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002883/0.09249, allocations: 1.951 MB / 353.2 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.038e-05/0.09255, allocations: 4 kB / 353.2 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.721e-05/0.09259, allocations: 0 / 353.2 MB, free: 1.25 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Examples.mo:279:3-372:24:writable] Warning: Pure function 'Modelica.Utilities.Examples.readRealParameter' contains a call to impure function 'Modelica.Utilities.Streams.readLine'. Notification: Performance of NFTyping.typeBindings: time 0.001168/0.09377, allocations: 438.5 kB / 353.6 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.96e-05/0.0938, allocations: 0 / 353.6 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.182e-05/0.09385, allocations: 11.94 kB / 353.6 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.283e-05/0.09389, allocations: 7.984 kB / 353.6 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.904e-05/0.09391, allocations: 11.92 kB / 353.6 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008052/0.102, allocations: 11.94 kB / 353.7 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.134e-05/0.102, allocations: 0 / 353.7 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000867/0.1029, allocations: 427.6 kB / 354.1 MB, free: 368 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.493e-05/0.1029, allocations: 0 / 354.1 MB, free: 368 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.936e-05/0.1029, allocations: 3.938 kB / 354.1 MB, free: 364 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004839/0.1034, allocations: 343.4 kB / 354.4 MB, free: 20 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1034, allocations: 0 / 354.4 MB, free: 20 kB / 286.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1035, allocations: 0 / 354.4 MB, free: 20 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.389e-06/0.1035, allocations: 0 / 354.4 MB, free: 20 kB / 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.0004472/0.1039, allocations: 411.4 kB / 354.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.104, allocations: 12.03 kB / 354.8 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.917e-05/0.104, allocations: 76.22 kB / 354.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001554/0.1042, allocations: 239.9 kB / 355.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.807e-05/0.1042, allocations: 154.9 kB / 355.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.122e-05/0.1043, allocations: 154.7 kB / 355.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.381e-05/0.1044, allocations: 105 kB / 355.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.435e-05/0.1044, allocations: 79.28 kB / 355.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.686e-05/0.1045, allocations: 154.5 kB / 355.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.273e-05/0.1045, allocations: 150.6 kB / 355.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.501e-05/0.1046, allocations: 150.6 kB / 356.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002671/0.1048, allocations: 453.9 kB / 356.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.161e-05/0.1049, allocations: 165.1 kB / 356.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.863e-05/0.105, allocations: 88.02 kB / 356.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.105, allocations: 75.28 kB / 356.8 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001457/0.1052, allocations: 51.41 kB / 356.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.354e-06/0.1052, allocations: 0 / 356.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001185/0.1053, allocations: 37.61 kB / 356.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.137e-05/0.1053, allocations: 55.34 kB / 357 MB, free: 13.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.568e-05/0.1054, allocations: 105.8 kB / 357.1 MB, free: 13.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.09e-05/0.1054, allocations: 29.64 kB / 357.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.027e-05/0.1055, allocations: 80.14 kB / 357.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.113e-05/0.1055, allocations: 0 / 357.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.493e-05/0.1055, allocations: 13.84 kB / 357.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.407e-05/0.1056, allocations: 318.8 kB / 357.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.967e-06/0.1057, allocations: 0 / 357.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.969e-06/0.1057, allocations: 0 / 357.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.022e-05/0.1057, allocations: 8.859 kB / 357.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-06/0.1057, allocations: 0 / 357.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.19e-05/0.1057, allocations: 41.56 kB / 357.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.1058, allocations: 8.094 kB / 357.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.467e-06/0.1058, allocations: 4 kB / 357.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.1058, allocations: 0 / 357.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.812e-05/0.1058, allocations: 3.938 kB / 357.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.1058, allocations: 0 / 357.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.462e-05/0.1058, allocations: 0 / 357.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.459e-06/0.1059, allocations: 0 / 357.6 MB, free: 12.62 MB / 302.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 7.167e-05/0.1059, allocations: 117.8 kB / 357.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.297e-06/0.106, allocations: 192 / 357.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.505e-05/0.106, allocations: 11.09 kB / 357.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.106, allocations: 4 kB / 357.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.106, allocations: 8 kB / 357.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.106, allocations: 0 / 357.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001044/0.1061, allocations: 149.6 kB / 357.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1061, allocations: 0 / 357.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.446e-06/0.1061, allocations: 0 / 357.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-06/0.1062, allocations: 4 kB / 357.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.079e-06/0.1062, allocations: 0 / 357.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1062, allocations: 0 / 357.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1062, allocations: 0 / 357.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.164e-05/0.1062, allocations: 73 kB / 357.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.655e-05/0.1063, allocations: 77.11 kB / 358 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.256e-05/0.1063, allocations: 0 / 358 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.208e-05/0.1063, allocations: 0 / 358 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.231e-05/0.1063, allocations: 0 / 358 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-06/0.1064, allocations: 0 / 358 MB, free: 12.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.778e-05/0.1064, allocations: 91.2 kB / 358.1 MB, free: 12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1064, allocations: 4 kB / 358.1 MB, free: 12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003765/0.1068, allocations: 124 kB / 358.2 MB, free: 11.88 MB / 302.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.0008787/0.1077, allocations: 493.3 kB / 358.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 6.336e-05/0.1077, allocations: 7.984 kB / 358.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1078, allocations: 0 / 358.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.903e-06/0.1078, allocations: 3.938 kB / 358.7 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001305/0.1079, allocations: 7.938 kB / 358.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002352/0.1081, allocations: 114.6 kB / 358.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002197/0.1084, allocations: 0.673 MB / 359.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.631e-05/0.1084, allocations: 11.98 kB / 359.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.835e-05/0.1084, allocations: 11.44 kB / 359.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1084, allocations: 0 / 359.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of Templates: time 0.005953/0.1144, allocations: 2.77 MB / 362.3 MB, free: 7.809 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches