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.001663/0.001663, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002166/0.002166, allocations: 205.8 kB / 23.73 MB, free: 4.379 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.397/1.397, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001514/0.001514, allocations: 51.92 kB / 377.7 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2504, allocations: 53.37 MB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002205/0.2526, allocations: 1.206 MB / 432.3 MB, free: 5.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003229/0.2558, allocations: 2.088 MB / 434.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.988e-05/0.2559, allocations: 0 / 434.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.879e-05/0.2559, allocations: 0 / 434.4 MB, free: 3.359 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.001196/0.2571, allocations: 482.5 kB / 434.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2e-05/0.2571, allocations: 0 / 434.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.251e-05/0.2571, allocations: 15.88 kB / 434.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.965e-05/0.2572, allocations: 4 kB / 434.8 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.815e-05/0.2572, allocations: 3.984 kB / 434.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003067/0.2575, allocations: 7.984 kB / 434.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.37e-05/0.2575, allocations: 4 kB / 434.9 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000774/0.2583, allocations: 0.4995 MB / 435.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.592e-05/0.2583, allocations: 7.938 kB / 435.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 1.653e-05/0.2583, allocations: 4 kB / 435.4 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005604/0.2589, allocations: 371.6 kB / 435.7 MB, free: 1.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.2589, allocations: 0 / 435.7 MB, free: 1.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2589, allocations: 0 / 435.7 MB, free: 1.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.583e-06/0.2589, allocations: 7.984 kB / 435.7 MB, free: 1.973 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.0004837/0.2594, allocations: 349.3 kB / 436.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.2594, allocations: 8.031 kB / 436.1 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.296e-05/0.2595, allocations: 106 kB / 436.2 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.284e-05/0.2596, allocations: 84.17 kB / 436.3 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001692/0.2597, allocations: 185.8 kB / 436.5 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.952e-05/0.2598, allocations: 150.9 kB / 436.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.845e-05/0.2599, allocations: 166.4 kB / 436.8 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.338e-05/0.26, allocations: 101 kB / 436.9 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.62e-05/0.26, allocations: 75.28 kB / 436.9 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.602e-05/0.2601, allocations: 158.6 kB / 437.1 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.185e-05/0.2601, allocations: 154.5 kB / 437.2 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.538e-05/0.2602, allocations: 154.6 kB / 437.4 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003486/0.2606, allocations: 413.1 kB / 437.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001049/0.2607, allocations: 177.1 kB / 438 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.24e-05/0.2607, allocations: 84.12 kB / 438.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.005e-05/0.2607, allocations: 75.28 kB / 438.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001584/0.2609, allocations: 51.25 kB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.954e-06/0.2609, allocations: 0 / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001387/0.261, allocations: 37.69 kB / 438.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/0.2611, allocations: 55.41 kB / 438.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.325e-05/0.2612, allocations: 97.8 kB / 438.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.2612, allocations: 25.7 kB / 438.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.544e-05/0.2612, allocations: 92.12 kB / 438.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.26e-05/0.2613, allocations: 3.953 kB / 438.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.459e-05/0.2613, allocations: 9.719 kB / 438.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.2614, allocations: 319 kB / 438.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.285e-06/0.2614, allocations: 0 / 438.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.388e-06/0.2614, allocations: 0 / 438.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.48e-05/0.2615, allocations: 12.86 kB / 438.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.2615, allocations: 3.938 kB / 438.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.155e-05/0.2615, allocations: 33.69 kB / 438.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.2615, allocations: 8 kB / 438.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.2615, allocations: 3.938 kB / 438.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.2616, allocations: 0 / 438.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.039e-05/0.2616, allocations: 4.031 kB / 438.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.758e-06/0.2616, allocations: 4 kB / 438.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.69e-05/0.2616, allocations: 0 / 438.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.089e-06/0.2616, allocations: 0 / 438.9 MB, free: 14.63 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 8.078e-05/0.2617, allocations: 117.7 kB / 439 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.427e-06/0.2617, allocations: 0 / 439 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.048e-05/0.2617, allocations: 15.09 kB / 439 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.2617, allocations: 4 kB / 439 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.2617, allocations: 0 / 439 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.2617, allocations: 0 / 439 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001204/0.2619, allocations: 116.7 kB / 439.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.2619, allocations: 8 kB / 439.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.146e-06/0.2619, allocations: 0 / 439.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.2619, allocations: 192 / 439.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.114e-06/0.2619, allocations: 7.922 kB / 439.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.2619, allocations: 0 / 439.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2619, allocations: 0 / 439.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.74e-05/0.2619, allocations: 69 kB / 439.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.707e-06/0.262, allocations: 0 / 439.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.166e-05/0.262, allocations: 0 / 439.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.814e-05/0.262, allocations: 11.98 kB / 439.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.378e-05/0.262, allocations: 32 / 439.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.864e-06/0.262, allocations: 4 kB / 439.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.808e-05/0.262, allocations: 83.28 kB / 439.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 5e-08/0.262, allocations: 0 / 439.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004367/0.2625, allocations: 147.5 kB / 439.4 MB, free: 13.98 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.001407/0.2639, allocations: 0.9959 MB / 440.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.224e-05/0.264, allocations: 11.94 kB / 440.5 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.264, allocations: 0 / 440.5 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.155e-06/0.264, allocations: 4 kB / 440.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001319/0.2641, allocations: 0 / 440.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.2653, allocations: 1.154 MB / 441.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.152e-05/0.2653, allocations: 63.53 kB / 441.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.256e-05/0.2653, allocations: 11.98 kB / 441.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.602e-05/0.2654, allocations: 11.44 kB / 441.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2654, allocations: 3.938 kB / 441.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03336/0.2987, allocations: 4.887 MB / 446.6 MB, free: 6.918 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/10.79, allocations: 15.42 kB / 446.6 MB, free: 6.906 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.090338232985232]