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.001372/0.001372, allocations: 114.4 kB / 17.73 MB, free: 5.359 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.00147/0.001471, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.512/1.512, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001258/0.001258, allocations: 51.91 kB / 328.5 MB, free: 3.344 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09281/0.09408, allocations: 46.63 MB / 375.1 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002376/0.0965, allocations: 1.178 MB / 376.3 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003183/0.0997, allocations: 2.01 MB / 378.3 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.254e-05/0.09975, allocations: 0 / 378.3 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.907e-05/0.09981, allocations: 0 / 378.3 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001305/0.1011, allocations: 434.7 kB / 378.7 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.921e-05/0.1012, allocations: 0 / 378.7 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.445e-05/0.1012, allocations: 19.92 kB / 378.8 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.05e-05/0.1013, allocations: 0 / 378.8 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.953e-05/0.1013, allocations: 4 kB / 378.8 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001269/0.1014, allocations: 15.86 kB / 378.8 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.328e-06/0.1014, allocations: 0 / 378.8 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007184/0.1022, allocations: 475.5 kB / 379.2 MB, free: 480 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.152e-05/0.1022, allocations: 0 / 379.2 MB, free: 480 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.116e-05/0.1022, allocations: 3.984 kB / 379.2 MB, free: 476 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005631/0.1028, allocations: 343.4 kB / 379.6 MB, free: 132 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.1028, allocations: 0 / 379.6 MB, free: 132 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1028, allocations: 4 kB / 379.6 MB, free: 128 kB / 318.1 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.1028, allocations: 0 / 379.6 MB, free: 128 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.2112/0.314, allocations: 400.3 kB / 380 MB, free: 12.96 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.3141, allocations: 9.781 kB / 380 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.009e-05/0.3142, allocations: 78.17 kB / 380.1 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000154/0.3143, allocations: 249.8 kB / 380.3 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.477e-05/0.3144, allocations: 151.7 kB / 380.4 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.859e-05/0.3144, allocations: 153.3 kB / 380.6 MB, free: 12.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.549e-05/0.3144, allocations: 102.2 kB / 380.7 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.3145, allocations: 75.28 kB / 380.8 MB, free: 12.14 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.996e-05/0.3145, allocations: 157 kB / 380.9 MB, free: 11.99 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.173e-05/0.3145, allocations: 155.3 kB / 381.1 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.832e-05/0.3146, allocations: 153.3 kB / 381.2 MB, free: 11.69 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000222/0.3148, allocations: 446.7 kB / 381.7 MB, free: 11.21 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.849e-05/0.3148, allocations: 175.1 kB / 381.8 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.998e-05/0.3149, allocations: 80.14 kB / 381.9 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.653e-05/0.3149, allocations: 76.44 kB / 382 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001805/0.3151, allocations: 44.95 kB / 382 MB, free: 10.84 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 2.584e-06/0.3151, allocations: 2.375 kB / 382 MB, free: 10.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001441/0.3152, allocations: 44.59 kB / 382.1 MB, free: 10.8 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.348e-05/0.3153, allocations: 51.91 kB / 382.1 MB, free: 10.74 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.545e-05/0.3154, allocations: 101.9 kB / 382.2 MB, free: 10.64 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.474e-06/0.3154, allocations: 25.7 kB / 382.3 MB, free: 10.61 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.743e-05/0.3154, allocations: 86.95 kB / 382.3 MB, free: 10.53 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.57e-05/0.3154, allocations: 0 / 382.3 MB, free: 10.53 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.892e-05/0.3155, allocations: 11.19 kB / 382.3 MB, free: 10.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.767e-05/0.3155, allocations: 316.9 kB / 382.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.01e-05/0.3155, allocations: 1.5 kB / 382.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.773e-06/0.3155, allocations: 2.828 kB / 382.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.185e-05/0.3156, allocations: 13.14 kB / 382.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.3156, allocations: 0 / 382.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.729e-05/0.3156, allocations: 32.38 kB / 382.7 MB, free: 10.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.3157, allocations: 9.594 kB / 382.7 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.3157, allocations: 5.531 kB / 382.7 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.3157, allocations: 3.906 kB / 382.7 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.69e-05/0.3157, allocations: 0.8438 kB / 382.7 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.3157, allocations: 1.953 kB / 382.7 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.707e-05/0.3158, allocations: 2.453 kB / 382.7 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.3158, allocations: 0.8438 kB / 382.7 MB, free: 10.16 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.581e-05/0.3158, allocations: 107.2 kB / 382.8 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.095e-05/0.3158, allocations: 13.98 kB / 382.8 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.544e-05/0.3159, allocations: 13.2 kB / 382.9 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.3159, allocations: 1.375 kB / 382.9 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.3159, allocations: 0.5625 kB / 382.9 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.3159, allocations: 2 kB / 382.9 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.568e-05/0.316, allocations: 147.7 kB / 383 MB, free: 9.848 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.316, allocations: 0 / 383 MB, free: 9.848 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.618e-06/0.316, allocations: 2.891 kB / 383 MB, free: 9.848 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.316, allocations: 3.938 kB / 383 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.316, allocations: 3.234 kB / 383 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.624e-06/0.316, allocations: 5.812 kB / 383 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.316, allocations: 0 / 383 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.409e-05/0.3161, allocations: 56.94 kB / 383.1 MB, free: 9.781 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.954e-05/0.3161, allocations: 77.77 kB / 383.2 MB, free: 9.688 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.628e-05/0.3161, allocations: 9.125 kB / 383.2 MB, free: 9.684 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.295e-05/0.3162, allocations: 5.156 kB / 383.2 MB, free: 9.684 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.114e-05/0.3162, allocations: 2.156 kB / 383.2 MB, free: 9.684 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-06/0.3162, allocations: 3.594 kB / 383.2 MB, free: 9.684 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.869e-05/0.3162, allocations: 83.83 kB / 383.3 MB, free: 9.609 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3162, allocations: 0 / 383.3 MB, free: 9.609 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005386/0.3168, allocations: 126.1 kB / 383.4 MB, free: 9.609 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.0009726/0.3177, allocations: 477.2 kB / 383.8 MB, free: 9.422 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 8.018e-05/0.3178, allocations: 12.14 kB / 383.9 MB, free: 9.422 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3178, allocations: 4.062 kB / 383.9 MB, free: 9.418 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.753e-06/0.3179, allocations: 1.375 kB / 383.9 MB, free: 9.418 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001407/0.318, allocations: 7.406 kB / 383.9 MB, free: 9.414 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002499/0.3183, allocations: 102.1 kB / 384 MB, free: 9.316 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001334/0.3184, allocations: 0.6767 MB / 384.6 MB, free: 8.621 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.096e-05/0.3184, allocations: 10.89 kB / 384.7 MB, free: 8.621 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.374e-05/0.3185, allocations: 16.7 kB / 384.7 MB, free: 8.609 MB / 318.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3185, allocations: 0 / 384.7 MB, free: 8.609 MB / 318.1 MB Notification: Performance of Templates: time 0.007125/0.3256, allocations: 2.767 MB / 387.4 MB, free: 8.34 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