Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001221/0.001221, allocations: 118.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0012/0.0012, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 55.91 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2907, allocations: 50.55 MB / 409.2 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002374/0.2931, allocations: 1.203 MB / 410.4 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003368/0.2965, allocations: 2.073 MB / 412.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.844e-05/0.2966, allocations: 0 / 412.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.17e-05/0.2966, allocations: 3.984 kB / 412.5 MB, free: 14.48 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Utilities/Examples.mo:279:3-378: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.001456/0.2981, allocations: 470.4 kB / 413 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.828e-05/0.2981, allocations: 3.938 kB / 413 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.802e-05/0.2982, allocations: 8 kB / 413 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.611e-05/0.2983, allocations: 7.922 kB / 413 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.695e-05/0.2983, allocations: 4 kB / 413 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001338/0.2984, allocations: 7.984 kB / 413 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.104e-05/0.2985, allocations: 4 kB / 413 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009751/0.2994, allocations: 0.5112 MB / 413.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.267e-05/0.2995, allocations: 7.938 kB / 413.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.265e-05/0.2995, allocations: 0 / 413.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007518/0.3002, allocations: 387.3 kB / 413.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3003, allocations: 0 / 413.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.3003, allocations: 0 / 413.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.667e-06/0.3003, allocations: 0 / 413.9 MB, free: 13.08 MB / 334.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.0005156/0.3008, allocations: 420.7 kB / 414.3 MB, free: 12.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.3008, allocations: 8.031 kB / 414.3 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.849e-05/0.3009, allocations: 84.12 kB / 414.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001487/0.3011, allocations: 243.7 kB / 414.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.255e-05/0.3011, allocations: 150.9 kB / 414.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.691e-05/0.3012, allocations: 158.7 kB / 414.9 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.973e-05/0.3012, allocations: 105 kB / 415 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.3013, allocations: 75.28 kB / 415.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.063e-05/0.3013, allocations: 158.5 kB / 415.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.415e-05/0.3014, allocations: 150.6 kB / 415.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.928e-05/0.3015, allocations: 150.6 kB / 415.6 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002792/0.3017, allocations: 449.9 kB / 416 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.4e-05/0.3018, allocations: 169.1 kB / 416.2 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.06e-05/0.3019, allocations: 84.12 kB / 416.2 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.83e-05/0.3019, allocations: 83.22 kB / 416.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001208/0.302, allocations: 47.41 kB / 416.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 2.214e-06/0.302, allocations: 0 / 416.4 MB, free: 10.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001322/0.3022, allocations: 37.7 kB / 416.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.877e-05/0.3022, allocations: 51.41 kB / 416.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.184e-05/0.3023, allocations: 105.8 kB / 416.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.082e-05/0.3023, allocations: 29.7 kB / 416.6 MB, free: 10.17 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.784e-05/0.3024, allocations: 80.14 kB / 416.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.288e-05/0.3024, allocations: 0 / 416.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.362e-05/0.3024, allocations: 9.719 kB / 416.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.3026, allocations: 322.9 kB / 417 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.968e-06/0.3026, allocations: 4 kB / 417 MB, free: 9.742 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.45e-06/0.3026, allocations: 0 / 417 MB, free: 9.742 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.343e-05/0.3026, allocations: 8.859 kB / 417 MB, free: 9.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3026, allocations: 0 / 417 MB, free: 9.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.269e-05/0.3027, allocations: 45.47 kB / 417 MB, free: 9.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.3027, allocations: 6.812 kB / 417.1 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.3027, allocations: 7.938 kB / 417.1 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.3028, allocations: 0 / 417.1 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.09e-05/0.3028, allocations: 4.094 kB / 417.1 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.3028, allocations: 0 / 417.1 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.542e-05/0.3028, allocations: 0 / 417.1 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.468e-06/0.3028, allocations: 0 / 417.1 MB, free: 9.664 MB / 334.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.542e-05/0.3029, allocations: 121.7 kB / 417.2 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.161e-05/0.3029, allocations: 4 kB / 417.2 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.388e-05/0.303, allocations: 11.06 kB / 417.2 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.303, allocations: 192 / 417.2 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.303, allocations: 0 / 417.2 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.303, allocations: 11.98 kB / 417.2 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001104/0.3031, allocations: 153.6 kB / 417.4 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3031, allocations: 0 / 417.4 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.607e-06/0.3031, allocations: 0 / 417.4 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.3031, allocations: 4 kB / 417.4 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-06/0.3031, allocations: 0 / 417.4 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.3031, allocations: 0 / 417.4 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3031, allocations: 0 / 417.4 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.425e-05/0.3032, allocations: 65 kB / 417.4 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.911e-05/0.3033, allocations: 81.11 kB / 417.5 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.119e-05/0.3033, allocations: 0 / 417.5 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.399e-05/0.3033, allocations: 4 kB / 417.5 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.155e-05/0.3033, allocations: 0 / 417.5 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-06/0.3033, allocations: 0 / 417.5 MB, free: 9.117 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.228e-05/0.3034, allocations: 83.27 kB / 417.6 MB, free: 9.035 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3034, allocations: 0 / 417.6 MB, free: 9.035 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004412/0.3038, allocations: 151.9 kB / 417.7 MB, free: 8.887 MB / 334.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.001077/0.3049, allocations: 0.4954 MB / 418.2 MB, free: 8.441 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 7.109e-05/0.305, allocations: 4 kB / 418.2 MB, free: 8.438 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.305, allocations: 4.062 kB / 418.2 MB, free: 8.434 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.637e-06/0.305, allocations: 0 / 418.2 MB, free: 8.434 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001454/0.3052, allocations: 11.88 kB / 418.3 MB, free: 8.422 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002649/0.3054, allocations: 98.73 kB / 418.4 MB, free: 8.301 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002587/0.3057, allocations: 0.6729 MB / 419 MB, free: 7.602 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.962e-05/0.3057, allocations: 15.95 kB / 419 MB, free: 7.586 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.946e-05/0.3058, allocations: 11.44 kB / 419.1 MB, free: 7.574 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3058, allocations: 4 kB / 419.1 MB, free: 7.57 MB / 334.1 MB Notification: Performance of Templates: time 0.007001/0.3128, allocations: 3.125 MB / 422.2 MB, free: 4.441 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches