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.001107/0.001107, allocations: 110.5 kB / 17.73 MB, free: 5.316 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.001401/0.001401, allocations: 187 kB / 18.66 MB, free: 4.387 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.563/1.563, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001494/0.001494, allocations: 47.94 kB / 328.5 MB, free: 3.348 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1207, allocations: 46.62 MB / 375.1 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.00291/0.1237, allocations: 1.197 MB / 376.3 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003566/0.1273, allocations: 1.998 MB / 378.3 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.936e-05/0.1273, allocations: 4 kB / 378.3 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.337e-05/0.1274, allocations: 0 / 378.3 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001168/0.1286, allocations: 434.6 kB / 378.7 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.729e-05/0.1286, allocations: 7.938 kB / 378.7 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.82e-05/0.1287, allocations: 4 kB / 378.7 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.398e-05/0.1287, allocations: 7.984 kB / 378.8 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.296e-05/0.1288, allocations: 3.938 kB / 378.8 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000288/0.1291, allocations: 19.92 kB / 378.8 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.012e-05/0.1291, allocations: 0 / 378.8 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007309/0.1298, allocations: 479.5 kB / 379.2 MB, free: 468 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.471e-05/0.1299, allocations: 0 / 379.2 MB, free: 468 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.807e-05/0.1299, allocations: 3.984 kB / 379.2 MB, free: 464 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005224/0.1304, allocations: 339.1 kB / 379.6 MB, free: 124 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.1304, allocations: 3.984 kB / 379.6 MB, free: 120 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1304, allocations: 0 / 379.6 MB, free: 120 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.1305, allocations: 0 / 379.6 MB, free: 120 kB / 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.2603/0.3907, allocations: 406.7 kB / 380 MB, free: 12.99 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.099e-05/0.3908, allocations: 9.812 kB / 380 MB, free: 12.99 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.407e-05/0.3909, allocations: 82.67 kB / 380.1 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/0.3911, allocations: 241.5 kB / 380.3 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.457e-05/0.3911, allocations: 152.4 kB / 380.5 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.232e-05/0.3911, allocations: 153.3 kB / 380.6 MB, free: 12.35 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.22e-05/0.3912, allocations: 102.6 kB / 380.7 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.3912, allocations: 76.08 kB / 380.8 MB, free: 12.17 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.958e-05/0.3913, allocations: 160.9 kB / 380.9 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.495e-05/0.3913, allocations: 156.6 kB / 381.1 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.528e-05/0.3913, allocations: 151.7 kB / 381.2 MB, free: 11.72 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002114/0.3916, allocations: 450.3 kB / 381.7 MB, free: 11.24 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.788e-05/0.3916, allocations: 168.1 kB / 381.8 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.263e-05/0.3916, allocations: 81.27 kB / 381.9 MB, free: 10.99 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.541e-05/0.3917, allocations: 75.28 kB / 382 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001963/0.3919, allocations: 48.38 kB / 382 MB, free: 10.87 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 2.795e-06/0.3919, allocations: 3.375 kB / 382 MB, free: 10.87 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001656/0.3921, allocations: 41.83 kB / 382.1 MB, free: 10.83 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.137e-05/0.3921, allocations: 52.5 kB / 382.1 MB, free: 10.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.921e-05/0.3922, allocations: 101.4 kB / 382.2 MB, free: 10.67 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.384e-06/0.3922, allocations: 28.14 kB / 382.3 MB, free: 10.64 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.416e-05/0.3922, allocations: 80.89 kB / 382.3 MB, free: 10.56 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.47e-05/0.3923, allocations: 12.27 kB / 382.4 MB, free: 10.55 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.265e-05/0.3923, allocations: 11.91 kB / 382.4 MB, free: 10.54 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.737e-05/0.3923, allocations: 314.9 kB / 382.7 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.112e-05/0.3924, allocations: 1.344 kB / 382.7 MB, free: 10.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.472e-06/0.3924, allocations: 2.203 kB / 382.7 MB, free: 10.23 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.369e-05/0.3924, allocations: 9.859 kB / 382.7 MB, free: 10.22 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3924, allocations: 4.875 kB / 382.7 MB, free: 10.22 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.57e-05/0.3925, allocations: 33.98 kB / 382.7 MB, free: 10.19 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.3925, allocations: 9.5 kB / 382.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.3925, allocations: 2.344 kB / 382.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.3925, allocations: 1.281 kB / 382.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.314e-05/0.3925, allocations: 0 / 382.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.3925, allocations: 1.953 kB / 382.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.669e-05/0.3926, allocations: 1.188 kB / 382.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-06/0.3926, allocations: 2.906 kB / 382.7 MB, free: 10.18 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 5.223e-05/0.3926, allocations: 109.7 kB / 382.8 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.121e-05/0.3927, allocations: 5.281 kB / 382.9 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.589e-05/0.3927, allocations: 11.45 kB / 382.9 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.3927, allocations: 0 / 382.9 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.3927, allocations: 0 / 382.9 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.3927, allocations: 0.7031 kB / 382.9 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.878e-05/0.3928, allocations: 156 kB / 383 MB, free: 9.875 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3928, allocations: 0.875 kB / 383 MB, free: 9.875 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.507e-06/0.3928, allocations: 2.891 kB / 383 MB, free: 9.875 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.3928, allocations: 3.938 kB / 383 MB, free: 9.871 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.3928, allocations: 1.094 kB / 383 MB, free: 9.871 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3928, allocations: 0 / 383 MB, free: 9.871 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3929, allocations: 3.734 kB / 383 MB, free: 9.871 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.22e-05/0.3929, allocations: 59.45 kB / 383.1 MB, free: 9.809 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.821e-05/0.3929, allocations: 80.92 kB / 383.2 MB, free: 9.715 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.729e-05/0.393, allocations: 10 kB / 383.2 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.226e-05/0.393, allocations: 2 kB / 383.2 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.17e-05/0.393, allocations: 0 / 383.2 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.393, allocations: 1.281 kB / 383.2 MB, free: 9.711 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.678e-05/0.393, allocations: 82.73 kB / 383.3 MB, free: 9.637 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.393, allocations: 3.75 kB / 383.3 MB, free: 9.637 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005421/0.3936, allocations: 138.1 kB / 383.4 MB, free: 9.633 MB / 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.0009535/0.3946, allocations: 474.7 kB / 383.9 MB, free: 9.43 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 7.482e-05/0.3946, allocations: 4.156 kB / 383.9 MB, free: 9.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3947, allocations: 0 / 383.9 MB, free: 9.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.074e-06/0.3947, allocations: 3.125 kB / 383.9 MB, free: 9.43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001375/0.3948, allocations: 5.828 kB / 383.9 MB, free: 9.426 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002698/0.3951, allocations: 108.8 kB / 384 MB, free: 9.32 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.88e-05/0.3952, allocations: 0.6789 MB / 384.7 MB, free: 8.621 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.738e-05/0.3952, allocations: 10.64 kB / 384.7 MB, free: 8.621 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.043e-05/0.3953, allocations: 12.92 kB / 384.7 MB, free: 8.613 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3953, allocations: 0 / 384.7 MB, free: 8.613 MB / 318.1 MB Notification: Performance of Templates: time 0.008621/0.4039, allocations: 2.782 MB / 387.5 MB, free: 8.336 MB / 318.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","/var/lib/jenkins/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