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.001284/0.001284, allocations: 114 kB / 18.4 MB, free: 4.695 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.001121/0.001121, allocations: 186.3 kB / 19.33 MB, free: 3.777 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.393/1.393, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001285/0.001285, allocations: 59.91 kB / 329.2 MB, free: 3.336 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09187/0.09316, allocations: 46.61 MB / 375.8 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002477/0.09568, allocations: 1.19 MB / 377 MB, free: 3.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003224/0.09894, allocations: 1.999 MB / 379 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.355e-05/0.09899, allocations: 0 / 379 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.779e-05/0.09905, allocations: 4 kB / 379 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001411/0.1005, allocations: 438.6 kB / 379.4 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.9e-05/0.1005, allocations: 3.938 kB / 379.4 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.811e-05/0.1006, allocations: 7.984 kB / 379.4 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.134e-05/0.1006, allocations: 7.984 kB / 379.4 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.234e-05/0.1007, allocations: 7.938 kB / 379.4 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002696/0.1009, allocations: 11.94 kB / 379.4 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.028e-05/0.101, allocations: 0 / 379.4 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008883/0.1018, allocations: 479.5 kB / 379.9 MB, free: 472 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.024e-05/0.1019, allocations: 0 / 379.9 MB, free: 472 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.778e-05/0.1019, allocations: 0 / 379.9 MB, free: 472 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008224/0.1027, allocations: 343.4 kB / 380.2 MB, free: 128 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.023e-05/0.1028, allocations: 3.984 kB / 380.3 MB, free: 124 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1028, allocations: 0 / 380.3 MB, free: 124 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.1028, allocations: 0 / 380.3 MB, free: 124 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.1975/0.3003, allocations: 399.9 kB / 380.6 MB, free: 12.97 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.3004, allocations: 9.562 kB / 380.7 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.345e-05/0.3004, allocations: 80.41 kB / 380.7 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001089/0.3006, allocations: 249 kB / 381 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.3006, allocations: 152.2 kB / 381.1 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.772e-05/0.3006, allocations: 155.5 kB / 381.3 MB, free: 12.33 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.354e-05/0.3007, allocations: 103.1 kB / 381.4 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.3007, allocations: 75.28 kB / 381.4 MB, free: 12.15 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.611e-05/0.3007, allocations: 156.2 kB / 381.6 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.842e-05/0.3007, allocations: 152.8 kB / 381.8 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.314e-05/0.3008, allocations: 154.6 kB / 381.9 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001934/0.301, allocations: 449.1 kB / 382.3 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.587e-05/0.301, allocations: 169.1 kB / 382.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.72e-05/0.301, allocations: 80.64 kB / 382.6 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.436e-05/0.3011, allocations: 77.78 kB / 382.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001501/0.3012, allocations: 48.98 kB / 382.7 MB, free: 10.85 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 2.355e-06/0.3012, allocations: 0 / 382.7 MB, free: 10.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001265/0.3014, allocations: 44.31 kB / 382.8 MB, free: 10.81 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.133e-05/0.3014, allocations: 55.61 kB / 382.8 MB, free: 10.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.877e-05/0.3015, allocations: 98.72 kB / 382.9 MB, free: 10.65 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.232e-06/0.3015, allocations: 25.7 kB / 382.9 MB, free: 10.62 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.282e-05/0.3015, allocations: 86.11 kB / 383 MB, free: 10.54 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.333e-05/0.3015, allocations: 0 / 383 MB, free: 10.54 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.601e-05/0.3016, allocations: 12.77 kB / 383 MB, free: 10.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.54e-05/0.3016, allocations: 312.6 kB / 383.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.758e-06/0.3016, allocations: 4.125 kB / 383.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.013e-06/0.3016, allocations: 1.594 kB / 383.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.823e-05/0.3017, allocations: 17.23 kB / 383.4 MB, free: 10.2 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3017, allocations: 0 / 383.4 MB, free: 10.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.848e-05/0.3018, allocations: 33.73 kB / 383.4 MB, free: 10.17 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.3018, allocations: 8.625 kB / 383.4 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.3018, allocations: 3.594 kB / 383.4 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.3018, allocations: 3.125 kB / 383.4 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.759e-05/0.3019, allocations: 2.562 kB / 383.4 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.431e-06/0.3019, allocations: 0 / 383.4 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.438e-05/0.3019, allocations: 1.344 kB / 383.4 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-06/0.3019, allocations: 0 / 383.4 MB, free: 10.17 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.486e-05/0.302, allocations: 108.4 kB / 383.5 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.712e-05/0.302, allocations: 10.12 kB / 383.5 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.68e-05/0.3021, allocations: 13.19 kB / 383.5 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.3021, allocations: 1.156 kB / 383.5 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3021, allocations: 3.531 kB / 383.5 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.3021, allocations: 0 / 383.5 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.744e-05/0.3022, allocations: 154.9 kB / 383.7 MB, free: 9.855 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.3022, allocations: 1.422 kB / 383.7 MB, free: 9.855 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.619e-06/0.3022, allocations: 3.828 kB / 383.7 MB, free: 9.855 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.3022, allocations: 5.531 kB / 383.7 MB, free: 9.852 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.101e-06/0.3022, allocations: 0.7969 kB / 383.7 MB, free: 9.852 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.3023, allocations: 0 / 383.7 MB, free: 9.852 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3023, allocations: 1.531 kB / 383.7 MB, free: 9.852 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.256e-05/0.3023, allocations: 57.67 kB / 383.8 MB, free: 9.785 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.064e-05/0.3024, allocations: 81.31 kB / 383.8 MB, free: 9.691 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.3024, allocations: 5.906 kB / 383.8 MB, free: 9.688 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.742e-05/0.3024, allocations: 0 / 383.8 MB, free: 9.688 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.252e-05/0.3024, allocations: 6.469 kB / 383.8 MB, free: 9.688 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-06/0.3024, allocations: 0 / 383.8 MB, free: 9.688 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.068e-05/0.3025, allocations: 85.89 kB / 383.9 MB, free: 9.613 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3025, allocations: 3.75 kB / 383.9 MB, free: 9.613 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000499/0.303, allocations: 129.2 kB / 384.1 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.0008791/0.3039, allocations: 468.7 kB / 384.5 MB, free: 9.426 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 7.385e-05/0.304, allocations: 7.172 kB / 384.5 MB, free: 9.426 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.304, allocations: 0 / 384.5 MB, free: 9.426 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.116e-06/0.304, allocations: 2.938 kB / 384.5 MB, free: 9.426 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001448/0.3041, allocations: 5.969 kB / 384.5 MB, free: 9.422 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002395/0.3044, allocations: 134.4 kB / 384.7 MB, free: 9.289 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.993e-05/0.3045, allocations: 0.6752 MB / 385.3 MB, free: 8.594 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.888e-05/0.3045, allocations: 13.02 kB / 385.4 MB, free: 8.586 MB / 318.1 MB Notification: Performance of SimCode: time 2e-07/0.3045, allocations: 3.188 kB / 385.4 MB, free: 8.586 MB / 318.1 MB Notification: Performance of Templates: time 0.007038/0.3116, allocations: 3.096 MB / 388.5 MB, free: 8.266 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/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