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.001502/0.001502, allocations: 108.5 kB / 17.74 MB, free: 5.34 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.001437/0.001437, allocations: 186.9 kB / 18.67 MB, free: 4.414 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.359/1.359, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 47.92 kB / 351.9 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2823, allocations: 49.44 MB / 401.4 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002073/0.2845, allocations: 1.185 MB / 402.6 MB, free: 7.832 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002788/0.2873, allocations: 1.96 MB / 404.5 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.342e-05/0.2873, allocations: 0 / 404.5 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.447e-05/0.2873, allocations: 0 / 404.5 MB, free: 5.863 MB / 318.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.001074/0.2884, allocations: 436.5 kB / 405 MB, free: 5.438 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.181e-05/0.2884, allocations: 3.938 kB / 405 MB, free: 5.434 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.365e-05/0.2885, allocations: 8 kB / 405 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.515e-05/0.2885, allocations: 4 kB / 405 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.257e-05/0.2886, allocations: 11.88 kB / 405 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003443/0.2889, allocations: 11.97 kB / 405 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.052e-05/0.2889, allocations: 0 / 405 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006479/0.2896, allocations: 471.5 kB / 405.5 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.161e-05/0.2896, allocations: 4 kB / 405.5 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.135e-05/0.2896, allocations: 11.91 kB / 405.5 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000427/0.2901, allocations: 335.4 kB / 405.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.2901, allocations: 3.938 kB / 405.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2901, allocations: 0 / 405.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.2901, allocations: 0 / 405.8 MB, free: 4.59 MB / 318.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.0003952/0.2905, allocations: 407.5 kB / 406.2 MB, free: 4.145 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.2906, allocations: 8.031 kB / 406.2 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.983e-05/0.2906, allocations: 80.22 kB / 406.3 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001409/0.2908, allocations: 251.5 kB / 406.5 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.761e-05/0.2908, allocations: 150.9 kB / 406.7 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.72e-05/0.2909, allocations: 154.7 kB / 406.8 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.604e-05/0.2909, allocations: 109 kB / 406.9 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.323e-05/0.291, allocations: 75.28 kB / 407 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.008e-05/0.291, allocations: 150.6 kB / 407.2 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.601e-05/0.2911, allocations: 150.6 kB / 407.3 MB, free: 2.988 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.245e-05/0.2911, allocations: 154.5 kB / 407.5 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002528/0.2914, allocations: 453.9 kB / 407.9 MB, free: 2.344 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.656e-05/0.2914, allocations: 165.1 kB / 408.1 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.99e-05/0.2915, allocations: 84.08 kB / 408.1 MB, free: 2.086 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.092e-05/0.2915, allocations: 75.28 kB / 408.2 MB, free: 2.012 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001184/0.2916, allocations: 59.34 kB / 408.3 MB, free: 1.941 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 2.184e-06/0.2916, allocations: 0 / 408.3 MB, free: 1.941 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001193/0.2918, allocations: 33.7 kB / 408.3 MB, free: 1.902 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.2918, allocations: 51.41 kB / 408.4 MB, free: 1.84 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.2919, allocations: 105.8 kB / 408.5 MB, free: 1.727 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.206e-05/0.292, allocations: 25.7 kB / 408.5 MB, free: 1.695 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.246e-05/0.292, allocations: 88.08 kB / 408.6 MB, free: 1.605 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.081e-05/0.292, allocations: 0 / 408.6 MB, free: 1.605 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.539e-05/0.292, allocations: 17.84 kB / 408.6 MB, free: 1.582 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.701e-05/0.2921, allocations: 310.8 kB / 408.9 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.897e-06/0.2922, allocations: 4 kB / 408.9 MB, free: 1.266 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.011e-06/0.2922, allocations: 3.984 kB / 408.9 MB, free: 1.262 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.096e-05/0.2922, allocations: 8.859 kB / 408.9 MB, free: 1.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2922, allocations: 0 / 408.9 MB, free: 1.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.705e-05/0.2923, allocations: 41.55 kB / 408.9 MB, free: 1.203 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.2923, allocations: 8.094 kB / 409 MB, free: 1.195 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.2923, allocations: 0 / 409 MB, free: 1.195 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.2923, allocations: 4 kB / 409 MB, free: 1.191 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.864e-05/0.2923, allocations: 3.938 kB / 409 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.2923, allocations: 0 / 409 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.444e-05/0.2924, allocations: 0 / 409 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.939e-06/0.2924, allocations: 0 / 409 MB, free: 1.188 MB / 318.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.594e-05/0.2924, allocations: 113.8 kB / 409.1 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.064e-05/0.2925, allocations: 4 kB / 409.1 MB, free: 1.062 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.312e-05/0.2925, allocations: 11.06 kB / 409.1 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.2925, allocations: 0 / 409.1 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.2925, allocations: 0 / 409.1 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.2925, allocations: 0 / 409.1 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001165/0.2926, allocations: 157.6 kB / 409.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2926, allocations: 0 / 409.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.848e-06/0.2926, allocations: 0 / 409.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.2927, allocations: 0 / 409.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.461e-06/0.2927, allocations: 0 / 409.2 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.2927, allocations: 4 kB / 409.2 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2927, allocations: 0 / 409.2 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.923e-05/0.2928, allocations: 69 kB / 409.3 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.958e-05/0.2928, allocations: 77.11 kB / 409.4 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.158e-05/0.2928, allocations: 4 kB / 409.4 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.158e-05/0.2928, allocations: 0 / 409.4 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.259e-05/0.2928, allocations: 192 / 409.4 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-06/0.2928, allocations: 3.938 kB / 409.4 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.685e-05/0.2929, allocations: 87.25 kB / 409.5 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2929, allocations: 4.031 kB / 409.5 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003683/0.2933, allocations: 128 kB / 409.6 MB, free: 452 kB / 318.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.0008953/0.2942, allocations: 497.4 kB / 410.1 MB, free: 24 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 6.801e-05/0.2943, allocations: 4 kB / 410.1 MB, free: 20 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2943, allocations: 0 / 410.1 MB, free: 20 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.402e-06/0.2943, allocations: 0 / 410.1 MB, free: 20 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001352/0.2944, allocations: 17.22 kB / 410.1 MB, free: 8 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002425/0.2947, allocations: 128.5 kB / 410.2 MB, free: 15.85 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002128/0.2949, allocations: 0.6807 MB / 410.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.424e-05/0.2949, allocations: 15.42 kB / 410.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2949, allocations: 0 / 410.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of Templates: time 0.005106/0.3, allocations: 3.088 MB / 414 MB, free: 12.04 MB / 334.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/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