Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 183.7 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 43.94 kB / 370.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2419, allocations: 52.18 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002202/0.2441, allocations: 1.202 MB / 423.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003107/0.2472, allocations: 2.071 MB / 425.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.988e-05/0.2473, allocations: 0 / 425.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.863e-05/0.2473, allocations: 0 / 425.9 MB, free: 11.33 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Examples.mo:279:3-372: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.001091/0.2484, allocations: 437.9 kB / 426.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.726e-05/0.2484, allocations: 11.92 kB / 426.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.127e-05/0.2484, allocations: 4 kB / 426.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.549e-05/0.2485, allocations: 4 kB / 426.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.89e-05/0.2485, allocations: 11.88 kB / 426.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002572/0.2488, allocations: 7.984 kB / 426.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.486e-06/0.2488, allocations: 0 / 426.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007167/0.2495, allocations: 483.5 kB / 426.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.288e-05/0.2495, allocations: 4 kB / 426.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.304e-05/0.2495, allocations: 7.938 kB / 426.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004826/0.25, allocations: 343.6 kB / 427.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.25, allocations: 0 / 427.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.25, allocations: 0 / 427.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.25, allocations: 0 / 427.2 MB, free: 10.05 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.0004471/0.2505, allocations: 337.5 kB / 427.5 MB, free: 9.691 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.2505, allocations: 8.031 kB / 427.5 MB, free: 9.684 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.207e-05/0.2506, allocations: 110 kB / 427.6 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.947e-05/0.2506, allocations: 80.22 kB / 427.7 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001625/0.2508, allocations: 185.8 kB / 427.9 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.046e-05/0.2509, allocations: 154.9 kB / 428 MB, free: 9.129 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.729e-05/0.2509, allocations: 158.5 kB / 428.2 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.62e-05/0.251, allocations: 108.9 kB / 428.3 MB, free: 8.859 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.386e-05/0.251, allocations: 75.28 kB / 428.3 MB, free: 8.785 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.58e-05/0.2511, allocations: 154.6 kB / 428.5 MB, free: 8.633 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.995e-05/0.2512, allocations: 150.6 kB / 428.6 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.244e-05/0.2512, allocations: 150.6 kB / 428.8 MB, free: 8.336 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002894/0.2515, allocations: 421 kB / 429.2 MB, free: 7.883 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.71e-05/0.2516, allocations: 177 kB / 429.4 MB, free: 7.699 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.106e-05/0.2517, allocations: 88.19 kB / 429.5 MB, free: 7.609 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.404e-05/0.2517, allocations: 75.28 kB / 429.5 MB, free: 7.535 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001482/0.2518, allocations: 43.42 kB / 429.6 MB, free: 7.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 1.794e-06/0.2518, allocations: 0 / 429.6 MB, free: 7.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001238/0.252, allocations: 45.56 kB / 429.6 MB, free: 7.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.145e-05/0.252, allocations: 51.41 kB / 429.7 MB, free: 7.367 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.224e-05/0.2521, allocations: 105.8 kB / 429.8 MB, free: 7.254 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.423e-05/0.2521, allocations: 25.7 kB / 429.8 MB, free: 7.223 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.407e-05/0.2522, allocations: 88.25 kB / 429.9 MB, free: 7.133 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.121e-05/0.2522, allocations: 0 / 429.9 MB, free: 7.133 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.752e-05/0.2522, allocations: 13.72 kB / 429.9 MB, free: 7.113 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.2523, allocations: 314.8 kB / 430.2 MB, free: 6.797 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.303e-06/0.2523, allocations: 0 / 430.2 MB, free: 6.797 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.017e-06/0.2523, allocations: 0 / 430.2 MB, free: 6.797 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.296e-05/0.2524, allocations: 8.859 kB / 430.2 MB, free: 6.785 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.2524, allocations: 3.938 kB / 430.2 MB, free: 6.781 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.03e-05/0.2524, allocations: 41.69 kB / 430.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.2524, allocations: 8 kB / 430.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.2524, allocations: 0 / 430.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.2525, allocations: 0 / 430.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.761e-05/0.2525, allocations: 0 / 430.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/0.2525, allocations: 0 / 430.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.552e-05/0.2525, allocations: 0 / 430.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.2525, allocations: 3.984 kB / 430.3 MB, free: 6.723 MB / 334.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.458e-05/0.2526, allocations: 117.8 kB / 430.4 MB, free: 6.598 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.072e-05/0.2526, allocations: 7.984 kB / 430.4 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.548e-05/0.2526, allocations: 11.14 kB / 430.4 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.2526, allocations: 0 / 430.4 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.2526, allocations: 192 / 430.4 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.2526, allocations: 0 / 430.4 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00012/0.2527, allocations: 124.7 kB / 430.5 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2527, allocations: 3.984 kB / 430.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.935e-06/0.2527, allocations: 0 / 430.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.2527, allocations: 0 / 430.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.449e-06/0.2527, allocations: 0 / 430.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.2527, allocations: 0 / 430.5 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.2527, allocations: 4 kB / 430.5 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.48e-05/0.2528, allocations: 65.02 kB / 430.6 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.412e-06/0.2528, allocations: 3.984 kB / 430.6 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.358e-05/0.2528, allocations: 4 kB / 430.6 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.463e-05/0.2529, allocations: 4 kB / 430.6 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.393e-05/0.2529, allocations: 0 / 430.6 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-06/0.2529, allocations: 3.938 kB / 430.6 MB, free: 6.309 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.492e-05/0.2529, allocations: 87.31 kB / 430.7 MB, free: 6.223 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2529, allocations: 0 / 430.7 MB, free: 6.223 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004266/0.2533, allocations: 131.6 kB / 430.8 MB, free: 6.094 MB / 334.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.001329/0.2547, allocations: 0.9811 MB / 431.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 6.298e-05/0.2547, allocations: 0 / 431.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2547, allocations: 0 / 431.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.1e-06/0.2547, allocations: 4.062 kB / 431.8 MB, free: 5.156 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001306/0.2549, allocations: 4.062 kB / 431.8 MB, free: 5.152 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001049/0.2559, allocations: 1.158 MB / 433 MB, free: 3.914 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002822/0.2562, allocations: 0.6766 MB / 433.7 MB, free: 3.211 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.387e-05/0.2562, allocations: 15.92 kB / 433.7 MB, free: 3.195 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.921e-05/0.2563, allocations: 11.44 kB / 433.7 MB, free: 3.184 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2563, allocations: 0 / 433.7 MB, free: 3.184 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03436/0.2906, allocations: 4.045 MB / 437.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/10.88, allocations: 4.609 kB / 437.7 MB, free: 15.27 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.127127309096977]