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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 105.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.267/1.267, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009975/0.0009975, allocations: 43.48 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.109, allocations: 49.44 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002619/0.1116, allocations: 1.194 MB / 351.3 MB, free: 3.121 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002935/0.1146, allocations: 1.951 MB / 353.3 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.61e-05/0.1147, allocations: 0 / 353.3 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.028e-05/0.1147, allocations: 3.938 kB / 353.3 MB, free: 1.156 MB / 286.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.001009/0.1157, allocations: 430.6 kB / 353.7 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.786e-05/0.1157, allocations: 0 / 353.7 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.006e-05/0.1158, allocations: 15.94 kB / 353.7 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.287e-05/0.1158, allocations: 7.984 kB / 353.7 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.011e-05/0.1159, allocations: 7.922 kB / 353.8 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.275e-05/0.116, allocations: 12 kB / 353.8 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.537e-06/0.116, allocations: 0 / 353.8 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000585/0.1166, allocations: 427.6 kB / 354.2 MB, free: 280 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.327e-05/0.1166, allocations: 0 / 354.2 MB, free: 280 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.125e-05/0.1166, allocations: 7.875 kB / 354.2 MB, free: 272 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004572/0.1171, allocations: 335.6 kB / 354.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1171, allocations: 0 / 354.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1171, allocations: 4 kB / 354.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.987e-06/0.1171, allocations: 0 / 354.5 MB, free: 15.93 MB / 302.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.0004444/0.1175, allocations: 407.4 kB / 354.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.1176, allocations: 12.03 kB / 354.9 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.098e-05/0.1177, allocations: 106 kB / 355 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.375e-05/0.1177, allocations: 76.22 kB / 355.1 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001613/0.1179, allocations: 247.9 kB / 355.4 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.63e-05/0.118, allocations: 154.9 kB / 355.5 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.918e-05/0.118, allocations: 162.3 kB / 355.7 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.672e-05/0.1181, allocations: 101 kB / 355.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.494e-05/0.1181, allocations: 75.28 kB / 355.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.409e-05/0.1182, allocations: 150.6 kB / 356 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.042e-05/0.1182, allocations: 150.6 kB / 356.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.152e-05/0.1183, allocations: 158.6 kB / 356.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002628/0.1186, allocations: 445.9 kB / 356.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.121e-05/0.1186, allocations: 173 kB / 356.9 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.972e-05/0.1187, allocations: 84.14 kB / 357 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.491e-05/0.1187, allocations: 83.27 kB / 357 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001487/0.1189, allocations: 47.41 kB / 357.1 MB, free: 13.17 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.174e-06/0.1189, allocations: 3.938 kB / 357.1 MB, free: 13.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001185/0.119, allocations: 37.55 kB / 357.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.1191, allocations: 51.41 kB / 357.2 MB, free: 13.06 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.772e-05/0.1192, allocations: 109.8 kB / 357.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/0.1192, allocations: 29.83 kB / 357.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.619e-05/0.1192, allocations: 80.14 kB / 357.4 MB, free: 12.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.099e-05/0.1192, allocations: 0 / 357.4 MB, free: 12.83 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.526e-05/0.1193, allocations: 13.72 kB / 357.4 MB, free: 12.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.1194, allocations: 318.8 kB / 357.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.376e-06/0.1194, allocations: 0 / 357.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.859e-06/0.1194, allocations: 0 / 357.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.316e-05/0.1194, allocations: 16.86 kB / 357.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1194, allocations: 7.938 kB / 357.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.809e-05/0.1195, allocations: 29.7 kB / 357.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.1195, allocations: 8 kB / 357.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.1195, allocations: 0 / 357.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.1195, allocations: 0 / 357.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.768e-05/0.1196, allocations: 0 / 357.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.077e-06/0.1196, allocations: 0 / 357.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.602e-05/0.1196, allocations: 0 / 357.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-06/0.1196, allocations: 3.984 kB / 357.8 MB, free: 12.41 MB / 302.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 6.833e-05/0.1197, allocations: 121.8 kB / 357.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.117e-06/0.1197, allocations: 0 / 357.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.841e-05/0.1197, allocations: 7.125 kB / 357.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.1197, allocations: 0 / 357.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1198, allocations: 0 / 357.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.1198, allocations: 0 / 357.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001215/0.1199, allocations: 153.6 kB / 358.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.1199, allocations: 4 kB / 358.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-06/0.1199, allocations: 0 / 358.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.1199, allocations: 3.938 kB / 358.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.699e-06/0.1199, allocations: 4 kB / 358.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1199, allocations: 0 / 358.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1199, allocations: 0 / 358.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.817e-05/0.12, allocations: 61.06 kB / 358.1 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.836e-05/0.12, allocations: 81.02 kB / 358.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.208e-05/0.1201, allocations: 0 / 358.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.448e-05/0.1201, allocations: 4 kB / 358.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.249e-05/0.1201, allocations: 4.031 kB / 358.2 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.886e-06/0.1201, allocations: 7.938 kB / 358.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.444e-05/0.1202, allocations: 83.27 kB / 358.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1202, allocations: 0 / 358.3 MB, free: 11.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000371/0.1205, allocations: 127.9 kB / 358.4 MB, free: 11.66 MB / 302.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.001131/0.1217, allocations: 0.989 MB / 359.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 8.551e-05/0.1218, allocations: 7.984 kB / 359.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1218, allocations: 4.062 kB / 359.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.18e-06/0.1218, allocations: 0 / 359.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001295/0.1219, allocations: 4 kB / 359.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001003/0.1229, allocations: 1.146 MB / 360.6 MB, free: 9.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.1232, allocations: 0.6767 MB / 361.3 MB, free: 8.777 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.624e-05/0.1232, allocations: 7.984 kB / 361.3 MB, free: 8.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.13e-05/0.1233, allocations: 15.42 kB / 361.3 MB, free: 8.754 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1233, allocations: 7.938 kB / 361.3 MB, free: 8.746 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02502/0.1483, allocations: 3.888 MB / 365.2 MB, free: 4.934 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.771/7.92, allocations: 6.812 kB / 365.2 MB, free: 4.93 MB / 302.1 MB (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 --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) 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) Reference file matches