Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008378/0.0008378, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009244/0.0009244, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8944/0.8944, allocations: 177 MB / 204.1 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.964e-06/1.964e-06, allocations: 0 / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.173e-05/2.37e-05, allocations: 6.281 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001836/0.00186, allocations: 1.209 MB / 325.7 MB, free: 14.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002309/0.004169, allocations: 2.102 MB / 327.8 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.363e-05/0.004193, allocations: 0 / 327.8 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.356e-05/0.004216, allocations: 0 / 327.8 MB, free: 12.61 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.001219/0.005435, allocations: 481.4 kB / 328.3 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.516e-05/0.005461, allocations: 0 / 328.3 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.112e-05/0.005512, allocations: 11.94 kB / 328.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.771e-05/0.005549, allocations: 8 kB / 328.3 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.338e-05/0.005583, allocations: 11.97 kB / 328.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.856e-05/0.005661, allocations: 4 kB / 328.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.21e-05/0.005673, allocations: 0 / 328.3 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006807/0.006354, allocations: 495.2 kB / 328.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.448e-05/0.006369, allocations: 0 / 328.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.264e-05/0.006391, allocations: 4 kB / 328.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005562/0.006947, allocations: 470.9 kB / 329.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.006952, allocations: 0 / 329.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.006955, allocations: 0 / 329.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.00696, allocations: 0 / 329.2 MB, free: 11.16 MB / 298.7 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.0004192/0.007379, allocations: 349.4 kB / 329.6 MB, free: 10.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.00742, allocations: 11.98 kB / 329.6 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.72e-05/0.007467, allocations: 110 kB / 329.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.042e-05/0.007518, allocations: 80.17 kB / 329.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/0.007629, allocations: 189.1 kB / 330 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.504e-05/0.007664, allocations: 150.9 kB / 330.1 MB, free: 10.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.392e-05/0.007698, allocations: 154.9 kB / 330.3 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.217e-05/0.00775, allocations: 105.5 kB / 330.4 MB, free: 9.961 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001449/0.007895, allocations: 75.47 kB / 330.4 MB, free: 9.887 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.786e-05/0.007942, allocations: 154.7 kB / 330.6 MB, free: 9.734 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.13e-05/0.007974, allocations: 154.6 kB / 330.7 MB, free: 9.582 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.698e-05/0.008011, allocations: 158.6 kB / 330.9 MB, free: 9.426 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000199/0.00821, allocations: 417 kB / 331.3 MB, free: 8.977 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.068e-05/0.00827, allocations: 173 kB / 331.5 MB, free: 8.797 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.573e-05/0.008296, allocations: 84.14 kB / 331.6 MB, free: 8.711 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.816e-05/0.008314, allocations: 75.28 kB / 331.6 MB, free: 8.637 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001704/0.008485, allocations: 47.41 kB / 331.7 MB, free: 8.578 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 2.805e-06/0.008488, allocations: 3.984 kB / 331.7 MB, free: 8.574 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001291/0.008617, allocations: 37.58 kB / 331.7 MB, free: 8.531 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.024e-05/0.008647, allocations: 55.47 kB / 331.8 MB, free: 8.465 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.544e-05/0.008712, allocations: 109.8 kB / 331.9 MB, free: 8.348 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.789e-06/0.008722, allocations: 25.7 kB / 331.9 MB, free: 8.316 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.011e-05/0.008752, allocations: 84.14 kB / 332 MB, free: 8.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.415e-05/0.008766, allocations: 3.953 kB / 332 MB, free: 8.227 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.265e-05/0.008789, allocations: 13.72 kB / 332 MB, free: 8.207 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.008956, allocations: 314.8 kB / 332.3 MB, free: 7.891 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.456e-06/0.008965, allocations: 0 / 332.3 MB, free: 7.891 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.551e-06/0.00897, allocations: 4 kB / 332.3 MB, free: 7.887 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.02e-05/0.008991, allocations: 8.859 kB / 332.3 MB, free: 7.875 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.008993, allocations: 4.062 kB / 332.3 MB, free: 7.871 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.488e-05/0.009037, allocations: 41.64 kB / 332.4 MB, free: 7.824 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.009049, allocations: 4 kB / 332.4 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.009054, allocations: 3.938 kB / 332.4 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.009066, allocations: 0 / 332.4 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.29e-05/0.009089, allocations: 0 / 332.4 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.009094, allocations: 3.984 kB / 332.4 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.229e-05/0.009117, allocations: 7.984 kB / 332.4 MB, free: 7.805 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.009123, allocations: 0 / 332.4 MB, free: 7.805 MB / 298.7 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 6.426e-05/0.009187, allocations: 105.8 kB / 332.5 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.214e-05/0.009199, allocations: 8.031 kB / 332.5 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.52e-05/0.009235, allocations: 11.05 kB / 332.5 MB, free: 7.672 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.009238, allocations: 0 / 332.5 MB, free: 7.672 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.009242, allocations: 0 / 332.5 MB, free: 7.672 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-06/0.009245, allocations: 0 / 332.5 MB, free: 7.672 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.654e-05/0.009341, allocations: 124.8 kB / 332.6 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.009343, allocations: 0 / 332.6 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.917e-06/0.009347, allocations: 0 / 332.6 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.009348, allocations: 0 / 332.6 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.612e-06/0.009355, allocations: 3.938 kB / 332.6 MB, free: 7.504 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.009358, allocations: 11.88 kB / 332.6 MB, free: 7.492 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.009359, allocations: 4 kB / 332.6 MB, free: 7.488 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.981e-05/0.009419, allocations: 57.12 kB / 332.7 MB, free: 7.414 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.697e-06/0.009422, allocations: 4 kB / 332.7 MB, free: 7.41 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.026e-05/0.009433, allocations: 3.938 kB / 332.7 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.133e-06/0.00944, allocations: 0 / 332.7 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.005e-05/0.00945, allocations: 0 / 332.7 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-06/0.009452, allocations: 0 / 332.7 MB, free: 7.406 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.85e-05/0.00948, allocations: 87.27 kB / 332.8 MB, free: 7.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00948, allocations: 0 / 332.8 MB, free: 7.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003461/0.009826, allocations: 147.5 kB / 332.9 MB, free: 7.176 MB / 298.7 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.0008899/0.01072, allocations: 1.022 MB / 334 MB, free: 6.184 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 6.35e-05/0.01078, allocations: 7.938 kB / 334 MB, free: 6.176 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.01078, allocations: 0 / 334 MB, free: 6.176 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.705e-06/0.01078, allocations: 4.062 kB / 334 MB, free: 6.172 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001053/0.01089, allocations: 7.984 kB / 334 MB, free: 6.164 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000756/0.01165, allocations: 1.168 MB / 335.1 MB, free: 4.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.043e-05/0.01168, allocations: 55.36 kB / 335.2 MB, free: 4.836 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.295e-05/0.01171, allocations: 11.98 kB / 335.2 MB, free: 4.824 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.13e-05/0.01174, allocations: 16.48 kB / 335.2 MB, free: 4.809 MB / 298.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01174, allocations: 0 / 335.2 MB, free: 4.809 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01904/0.03078, allocations: 5.047 MB / 340.3 MB, free: 15.84 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.977/7.008, allocations: 0 / 340.3 MB, free: 15.84 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 8.659992668777704]