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.001291/0.001292, allocations: 110.5 kB / 17.73 MB, free: 5.363 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.001304/0.001304, allocations: 179.1 kB / 18.66 MB, free: 4.445 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.475/1.475, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001155/0.001155, allocations: 51.92 kB / 328.5 MB, free: 3.348 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09694/0.09811, 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.002414/0.1006, allocations: 1.193 MB / 376.3 MB, free: 3.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003337/0.1039, allocations: 2.002 MB / 378.3 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.571e-05/0.104, allocations: 0 / 378.3 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.034e-05/0.104, allocations: 0 / 378.3 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001123/0.1051, allocations: 442.6 kB / 378.7 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.384e-05/0.1052, allocations: 4 kB / 378.7 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.207e-05/0.1052, allocations: 7.938 kB / 378.8 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.097e-05/0.1053, allocations: 0 / 378.8 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.275e-05/0.1053, allocations: 4 kB / 378.8 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001224/0.1054, allocations: 19.91 kB / 378.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.218e-06/0.1055, allocations: 0 / 378.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007292/0.1062, allocations: 471.5 kB / 379.2 MB, free: 480 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.022e-05/0.1062, allocations: 0 / 379.2 MB, free: 480 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.72e-05/0.1062, allocations: 15.97 kB / 379.3 MB, free: 464 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004747/0.1067, allocations: 335.4 kB / 379.6 MB, free: 128 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1067, allocations: 0 / 379.6 MB, free: 128 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.1067, allocations: 4 kB / 379.6 MB, free: 124 kB / 318.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.1068, allocations: 0 / 379.6 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.2035/0.3102, allocations: 395.1 kB / 380 MB, free: 12.97 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.3103, allocations: 11.75 kB / 380 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.49e-05/0.3103, allocations: 78.09 kB / 380.1 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001159/0.3105, allocations: 250 kB / 380.3 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/0.3105, allocations: 152.5 kB / 380.4 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.687e-05/0.3105, allocations: 155.1 kB / 380.6 MB, free: 12.33 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.054e-05/0.3106, allocations: 101 kB / 380.7 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.222e-05/0.3106, allocations: 77.06 kB / 380.8 MB, free: 12.15 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.57e-05/0.3106, allocations: 157.7 kB / 380.9 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.3107, allocations: 152.5 kB / 381.1 MB, free: 11.85 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.219e-05/0.3107, allocations: 154.2 kB / 381.2 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001855/0.3109, allocations: 446.2 kB / 381.7 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.068e-05/0.3109, allocations: 169.3 kB / 381.8 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.774e-05/0.311, allocations: 86.42 kB / 381.9 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.103e-05/0.311, allocations: 75.78 kB / 382 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001695/0.3111, allocations: 47.48 kB / 382 MB, free: 10.85 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 2.625e-06/0.3112, allocations: 0 / 382 MB, free: 10.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001365/0.3113, allocations: 43.33 kB / 382.1 MB, free: 10.81 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.772e-05/0.3113, allocations: 51.41 kB / 382.1 MB, free: 10.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.437e-05/0.3114, allocations: 104.3 kB / 382.2 MB, free: 10.65 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.081e-06/0.3114, allocations: 27.02 kB / 382.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.903e-05/0.3114, allocations: 84.92 kB / 382.3 MB, free: 10.54 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.255e-05/0.3115, allocations: 1.281 kB / 382.3 MB, free: 10.54 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.258e-05/0.3115, allocations: 11.78 kB / 382.3 MB, free: 10.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.457e-05/0.3115, allocations: 316.4 kB / 382.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.376e-06/0.3116, allocations: 0 / 382.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.432e-06/0.3116, allocations: 5.875 kB / 382.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.987e-05/0.3116, allocations: 7.016 kB / 382.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.3116, allocations: 1.281 kB / 382.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.525e-05/0.3116, allocations: 39.42 kB / 382.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.3117, allocations: 12.31 kB / 382.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.3117, allocations: 0.875 kB / 382.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.3117, allocations: 2.578 kB / 382.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.625e-05/0.3117, allocations: 1.125 kB / 382.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.3117, allocations: 0 / 382.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.897e-05/0.3118, allocations: 2.359 kB / 382.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.991e-06/0.3118, allocations: 0 / 382.7 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.516e-05/0.3118, allocations: 107.8 kB / 382.8 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.119e-05/0.3119, allocations: 12.22 kB / 382.8 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.613e-05/0.3119, allocations: 14.88 kB / 382.9 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.3119, allocations: 2.438 kB / 382.9 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.3119, allocations: 1.375 kB / 382.9 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.3119, allocations: 0 / 382.9 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.302e-05/0.312, allocations: 152.7 kB / 383 MB, free: 9.855 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.312, allocations: 0 / 383 MB, free: 9.855 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.576e-06/0.312, allocations: 0.6562 kB / 383 MB, free: 9.855 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.312, allocations: 6.594 kB / 383 MB, free: 9.852 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.568e-06/0.312, allocations: 0 / 383 MB, free: 9.852 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.312, allocations: 0.8438 kB / 383 MB, free: 9.852 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.312, allocations: 1.594 kB / 383 MB, free: 9.852 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.112e-05/0.3121, allocations: 64.61 kB / 383.1 MB, free: 9.785 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.447e-05/0.3121, allocations: 78.48 kB / 383.2 MB, free: 9.691 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.357e-05/0.3121, allocations: 5.922 kB / 383.2 MB, free: 9.688 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.304e-05/0.3121, allocations: 0.75 kB / 383.2 MB, free: 9.688 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.007e-05/0.3122, allocations: 3.75 kB / 383.2 MB, free: 9.688 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.492e-06/0.3122, allocations: 1.375 kB / 383.2 MB, free: 9.688 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.703e-05/0.3122, allocations: 91.88 kB / 383.3 MB, free: 9.609 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3122, allocations: 0 / 383.3 MB, free: 9.609 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004581/0.3127, allocations: 125 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.0008446/0.3135, allocations: 472.6 kB / 383.8 MB, free: 9.422 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 6.964e-05/0.3136, allocations: 4.453 kB / 383.9 MB, free: 9.422 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.624e-06/0.3136, allocations: 0 / 383.9 MB, free: 9.422 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.572e-06/0.3136, allocations: 2.281 kB / 383.9 MB, free: 9.422 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001552/0.3138, allocations: 12.91 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.0002034/0.314, allocations: 103 kB / 384 MB, free: 9.316 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.661e-05/0.3141, allocations: 0.6736 MB / 384.6 MB, free: 8.621 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.707e-05/0.3141, allocations: 10.69 kB / 384.7 MB, free: 8.621 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.847e-05/0.3141, allocations: 12.73 kB / 384.7 MB, free: 8.613 MB / 318.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3142, allocations: 2.688 kB / 384.7 MB, free: 8.613 MB / 318.1 MB Notification: Performance of Templates: time 0.006373/0.3205, allocations: 2.773 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