Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001674/0.001674, allocations: 73.8 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002038/0.002038, allocations: 160.9 kB / 24.5 MB, free: 3.715 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.444/1.444, allocations: 177.2 MB / 204.9 MB, free: 9 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel") translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 54.42 kB / 325.5 MB, free: 268 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.102, allocations: 53.34 MB / 378.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002657/0.1046, allocations: 1.199 MB / 380.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003699/0.1083, allocations: 2.102 MB / 382.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.938e-05/0.1084, allocations: 0 / 382.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.114e-05/0.1084, allocations: 3.938 kB / 382.2 MB, free: 12.35 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Utilities/Examples.mo:279:3-378: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.001398/0.1098, allocations: 466.6 kB / 382.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.75e-05/0.1098, allocations: 7.984 kB / 382.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.784e-05/0.1099, allocations: 7.938 kB / 382.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.947e-05/0.1099, allocations: 4 kB / 382.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.657e-05/0.1099, allocations: 0 / 382.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.137e-05/0.11, allocations: 7.938 kB / 382.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.02e-05/0.11, allocations: 3.938 kB / 382.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008567/0.1109, allocations: 491.5 kB / 383.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.011e-05/0.1109, allocations: 7.984 kB / 383.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.029e-05/0.1109, allocations: 7.984 kB / 383.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005644/0.1115, allocations: 375.1 kB / 383.5 MB, free: 11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1115, allocations: 0 / 383.5 MB, free: 11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1115, allocations: 0 / 383.5 MB, free: 11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.498e-06/0.1115, allocations: 0 / 383.5 MB, free: 11 MB / 350.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.0004562/0.1119, allocations: 349.4 kB / 383.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.112, allocations: 8.031 kB / 383.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.587e-05/0.112, allocations: 84.16 kB / 384 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.1122, allocations: 185.8 kB / 384.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.041e-05/0.1123, allocations: 154.9 kB / 384.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.383e-05/0.1123, allocations: 158.7 kB / 384.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.999e-05/0.1124, allocations: 105 kB / 384.6 MB, free: 9.914 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.488e-05/0.1124, allocations: 75.28 kB / 384.6 MB, free: 9.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.345e-05/0.1125, allocations: 150.6 kB / 384.8 MB, free: 9.691 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-05/0.1126, allocations: 158.5 kB / 384.9 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.146e-05/0.1126, allocations: 158.5 kB / 385.1 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003468/0.113, allocations: 397.6 kB / 385.5 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000103/0.1131, allocations: 173.1 kB / 385.6 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.357e-05/0.1131, allocations: 80.14 kB / 385.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.644e-05/0.1132, allocations: 79.28 kB / 385.8 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001524/0.1133, allocations: 51.34 kB / 385.8 MB, free: 8.559 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.763e-06/0.1133, allocations: 3.938 kB / 385.8 MB, free: 8.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001236/0.1135, allocations: 33.64 kB / 385.9 MB, free: 8.516 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.396e-05/0.1135, allocations: 55.34 kB / 385.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.038e-05/0.1136, allocations: 105.8 kB / 386 MB, free: 8.336 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.682e-05/0.1136, allocations: 25.7 kB / 386.1 MB, free: 8.305 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.404e-05/0.1136, allocations: 84.14 kB / 386.1 MB, free: 8.219 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.533e-05/0.1137, allocations: 7.953 kB / 386.2 MB, free: 8.211 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.825e-05/0.1137, allocations: 9.719 kB / 386.2 MB, free: 8.195 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1138, allocations: 314.8 kB / 386.5 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.458e-06/0.1138, allocations: 8.125 kB / 386.5 MB, free: 7.871 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.429e-06/0.1138, allocations: 0 / 386.5 MB, free: 7.871 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.737e-05/0.1139, allocations: 16.8 kB / 386.5 MB, free: 7.852 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.1139, allocations: 0 / 386.5 MB, free: 7.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.601e-05/0.1139, allocations: 33.64 kB / 386.5 MB, free: 7.812 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.1139, allocations: 6.969 kB / 386.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-06/0.1139, allocations: 0 / 386.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.114, allocations: 0 / 386.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.8e-05/0.114, allocations: 4 kB / 386.5 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.978e-06/0.114, allocations: 96 / 386.5 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.592e-05/0.114, allocations: 4 kB / 386.5 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-06/0.114, allocations: 3.984 kB / 386.5 MB, free: 7.797 MB / 350.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.567e-05/0.1141, allocations: 106.5 kB / 386.7 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.114e-05/0.1141, allocations: 7.938 kB / 386.7 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.203e-05/0.1141, allocations: 3.156 kB / 386.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.1141, allocations: 0 / 386.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.1141, allocations: 0 / 386.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.623e-06/0.1141, allocations: 0 / 386.7 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.969e-05/0.1142, allocations: 105.3 kB / 386.8 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1142, allocations: 0 / 386.8 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.29e-06/0.1142, allocations: 7.938 kB / 386.8 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.1142, allocations: 7.938 kB / 386.8 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.879e-06/0.1142, allocations: 0 / 386.8 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.1142, allocations: 0 / 386.8 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1142, allocations: 0 / 386.8 MB, free: 7.523 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.963e-05/0.1143, allocations: 61.12 kB / 386.8 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.402e-06/0.1143, allocations: 3.938 kB / 386.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.142e-05/0.1143, allocations: 3.938 kB / 386.8 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.165e-05/0.1144, allocations: 0 / 386.8 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.127e-05/0.1144, allocations: 4 kB / 386.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.466e-06/0.1144, allocations: 8.031 kB / 386.9 MB, free: 7.426 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.436e-05/0.1144, allocations: 87.27 kB / 386.9 MB, free: 7.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1144, allocations: 0 / 386.9 MB, free: 7.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004302/0.1149, allocations: 143.5 kB / 387.1 MB, free: 7.199 MB / 350.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.001145/0.116, allocations: 0.5078 MB / 387.6 MB, free: 6.762 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.159e-05/0.1161, allocations: 11.94 kB / 387.6 MB, free: 6.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1161, allocations: 0 / 387.6 MB, free: 6.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.58e-06/0.1161, allocations: 0 / 387.6 MB, free: 6.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001407/0.1162, allocations: 4 kB / 387.6 MB, free: 6.746 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000262/0.1165, allocations: 102.9 kB / 387.7 MB, free: 6.621 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.241e-05/0.1165, allocations: 55.36 kB / 387.8 MB, free: 6.547 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.553e-05/0.1166, allocations: 20.05 kB / 387.8 MB, free: 6.527 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.643e-05/0.1166, allocations: 16.48 kB / 387.8 MB, free: 6.512 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1166, allocations: 0 / 387.8 MB, free: 6.512 MB / 350.1 MB Notification: Performance of Templates: time 0.007424/0.124, allocations: 3.134 MB / 390.9 MB, free: 3.379 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.361019963980652]