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.001497/0.001497, allocations: 107.1 kB / 20.44 MB, free: 1.324 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.001742/0.001742, allocations: 196.5 kB / 23.72 MB, free: 4.492 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.452/1.452, allocations: 230.6 MB / 257.5 MB, free: 7.734 MB / 206.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: "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_1_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 47.91 kB / 377.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2641, allocations: 53.36 MB / 431.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002256/0.2664, allocations: 1.207 MB / 432.3 MB, free: 5.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003385/0.2697, allocations: 2.084 MB / 434.3 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.532e-05/0.2698, allocations: 4 kB / 434.3 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.824e-05/0.2698, allocations: 3.938 kB / 434.4 MB, free: 3.355 MB / 334.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.001215/0.271, allocations: 470.6 kB / 434.8 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.097e-05/0.271, allocations: 0 / 434.8 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 3.937e-05/0.2711, allocations: 11.94 kB / 434.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.089e-05/0.2711, allocations: 0 / 434.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.227e-05/0.2711, allocations: 7.938 kB / 434.8 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.601e-05/0.2712, allocations: 19.91 kB / 434.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.197e-06/0.2712, allocations: 4 kB / 434.9 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007543/0.272, allocations: 483.5 kB / 435.3 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.294e-05/0.272, allocations: 3.984 kB / 435.3 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.52e-05/0.272, allocations: 11.94 kB / 435.3 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000524/0.2725, allocations: 368.9 kB / 435.7 MB, free: 2.004 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2725, allocations: 3.938 kB / 435.7 MB, free: 2 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2725, allocations: 0 / 435.7 MB, free: 2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.2725, allocations: 0 / 435.7 MB, free: 2 MB / 334.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.0004594/0.273, allocations: 352.2 kB / 436.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.273, allocations: 8.031 kB / 436.1 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.094e-05/0.2731, allocations: 110 kB / 436.2 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.384e-05/0.2732, allocations: 88.11 kB / 436.3 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001628/0.2733, allocations: 181.8 kB / 436.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.178e-05/0.2734, allocations: 158.9 kB / 436.6 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.612e-05/0.2735, allocations: 154.5 kB / 436.7 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.563e-05/0.2736, allocations: 109 kB / 436.8 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.015e-05/0.2736, allocations: 75.28 kB / 436.9 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.847e-05/0.2737, allocations: 150.6 kB / 437.1 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.96e-05/0.2737, allocations: 150.6 kB / 437.2 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.256e-05/0.2738, allocations: 158.5 kB / 437.4 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003166/0.2741, allocations: 417 kB / 437.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001057/0.2742, allocations: 173.1 kB / 437.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.311e-05/0.2743, allocations: 80.14 kB / 438 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.566e-05/0.2743, allocations: 79.27 kB / 438.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001493/0.2745, allocations: 51.36 kB / 438.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.673e-06/0.2745, allocations: 0 / 438.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001183/0.2746, allocations: 33.69 kB / 438.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.483e-05/0.2746, allocations: 51.41 kB / 438.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.978e-05/0.2747, allocations: 101.9 kB / 438.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.2747, allocations: 25.7 kB / 438.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.028e-05/0.2748, allocations: 84.27 kB / 438.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.2748, allocations: 7.938 kB / 438.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.028e-05/0.2748, allocations: 17.72 kB / 438.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.2749, allocations: 310.8 kB / 438.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.915e-06/0.275, allocations: 0 / 438.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.01e-05/0.275, allocations: 7.938 kB / 438.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.103e-05/0.275, allocations: 4.859 kB / 438.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.275, allocations: 3.938 kB / 438.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.602e-05/0.275, allocations: 41.69 kB / 438.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.2751, allocations: 4.094 kB / 438.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.387e-06/0.2751, allocations: 4.188 kB / 438.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.2751, allocations: 0 / 438.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.931e-05/0.2751, allocations: 4 kB / 438.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.2751, allocations: 0 / 438.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.007e-05/0.2751, allocations: 7.984 kB / 438.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.488e-06/0.2751, allocations: 0 / 438.8 MB, free: 14.66 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.956e-05/0.2752, allocations: 113.7 kB / 439 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.124e-05/0.2752, allocations: 11.88 kB / 439 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.148e-05/0.2752, allocations: 7.109 kB / 439 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.2752, allocations: 7.922 kB / 439 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.2752, allocations: 4 kB / 439 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.2752, allocations: 0 / 439 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001154/0.2754, allocations: 124.7 kB / 439.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.2754, allocations: 0 / 439.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.996e-06/0.2754, allocations: 0 / 439.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.233e-06/0.2754, allocations: 0 / 439.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.569e-06/0.2754, allocations: 0 / 439.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.2754, allocations: 3.984 kB / 439.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.2754, allocations: 7.984 kB / 439.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.125e-05/0.2754, allocations: 57.08 kB / 439.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.264e-06/0.2754, allocations: 8.031 kB / 439.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.148e-05/0.2755, allocations: 0 / 439.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.245e-05/0.2755, allocations: 0 / 439.2 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.012e-05/0.2755, allocations: 3.984 kB / 439.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-06/0.2755, allocations: 0 / 439.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.727e-05/0.2755, allocations: 87.22 kB / 439.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2755, allocations: 0 / 439.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003985/0.2759, allocations: 147.5 kB / 439.4 MB, free: 14.01 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.001384/0.2773, allocations: 1.009 MB / 440.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.35e-05/0.2774, allocations: 0 / 440.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.349e-06/0.2774, allocations: 4 kB / 440.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.504e-06/0.2774, allocations: 3.938 kB / 440.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001314/0.2775, allocations: 7.938 kB / 440.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001116/0.2786, allocations: 1.158 MB / 441.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.603e-05/0.2787, allocations: 59.34 kB / 441.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.244e-05/0.2787, allocations: 12.05 kB / 441.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.851e-05/0.2788, allocations: 19.44 kB / 441.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2788, allocations: 0 / 441.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03427/0.313, allocations: 4.864 MB / 446.5 MB, free: 6.957 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/10.97, allocations: 15.42 kB / 446.6 MB, free: 6.945 MB / 350.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Utilities_Examples_readRealParameterModel_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_4.1.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 52.5] 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: 13.351727525703609]