Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_3_2_3_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.001101/0.001101, allocations: 114.2 kB / 17.28 MB, free: 6.219 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.001124/0.001124, allocations: 189.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.442/1.442, allocations: 205.1 MB / 224.1 MB, free: 12.36 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001046/0.001046, allocations: 51.92 kB / 280.2 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08584/0.0869, allocations: 46.63 MB / 326.9 MB, free: 4.703 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002145/0.08908, allocations: 1.245 MB / 328.1 MB, free: 3.441 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002749/0.09185, allocations: 1.98 MB / 330.1 MB, free: 1.449 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.964e-05/0.09189, allocations: 4 kB / 330.1 MB, free: 1.445 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 1.916e-05/0.09193, allocations: 0 / 330.1 MB, free: 1.445 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001021/0.09295, allocations: 383.2 kB / 330.5 MB, free: 1.07 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.401e-05/0.09299, allocations: 8 kB / 330.5 MB, free: 1.062 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 5.269e-05/0.09305, allocations: 11.94 kB / 330.5 MB, free: 1.051 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.184e-05/0.09308, allocations: 0 / 330.5 MB, free: 1.051 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.922e-05/0.09311, allocations: 4 kB / 330.5 MB, free: 1.047 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001048/0.09322, allocations: 15.86 kB / 330.5 MB, free: 1.031 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.575e-06/0.09323, allocations: 0 / 330.5 MB, free: 1.031 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005552/0.09379, allocations: 431.5 kB / 330.9 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.116e-05/0.09381, allocations: 4 kB / 330.9 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 1.933e-05/0.09384, allocations: 3.938 kB / 330.9 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000403/0.09425, allocations: 343.4 kB / 331.3 MB, free: 272 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.09426, allocations: 0 / 331.3 MB, free: 272 kB / 270.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.09427, allocations: 0 / 331.3 MB, free: 272 kB / 270.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.09428, allocations: 4 kB / 331.3 MB, free: 268 kB / 270.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.0004387/0.09472, allocations: 407.7 kB / 331.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.09477, allocations: 12.03 kB / 331.7 MB, free: 15.8 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.986e-05/0.09482, allocations: 106 kB / 331.8 MB, free: 15.69 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.467e-05/0.09489, allocations: 76.22 kB / 331.9 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001451/0.09504, allocations: 251.6 kB / 332.1 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.534e-05/0.0951, allocations: 154.9 kB / 332.3 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.309e-05/0.09515, allocations: 158.5 kB / 332.4 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.012e-05/0.09522, allocations: 105 kB / 332.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.489e-05/0.09525, allocations: 79.28 kB / 332.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.336e-05/0.09531, allocations: 150.6 kB / 332.7 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.465e-05/0.09536, allocations: 154.6 kB / 332.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.335e-05/0.09541, allocations: 154.6 kB / 333 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002607/0.09568, allocations: 445.9 kB / 333.5 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.379e-05/0.09577, allocations: 177 kB / 333.7 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.351e-05/0.09581, allocations: 80.14 kB / 333.7 MB, free: 13.63 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.775e-05/0.09584, allocations: 79.28 kB / 333.8 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001393/0.09599, allocations: 47.41 kB / 333.9 MB, free: 13.5 MB / 286.1 MB Notification: Performance of pre-optimization done (n=1): time 2.635e-06/0.096, allocations: 0 / 333.9 MB, free: 13.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=1): time 0.000138/0.09614, allocations: 33.64 kB / 333.9 MB, free: 13.46 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.491e-05/0.09618, allocations: 51.41 kB / 333.9 MB, free: 13.39 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.9e-05/0.09627, allocations: 105.8 kB / 334 MB, free: 13.28 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.0963, allocations: 25.83 kB / 334.1 MB, free: 13.25 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.45e-05/0.09634, allocations: 84.14 kB / 334.2 MB, free: 13.16 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.433e-05/0.09636, allocations: 3.906 kB / 334.2 MB, free: 13.16 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/0.09639, allocations: 17.72 kB / 334.2 MB, free: 13.14 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.0965, allocations: 310.8 kB / 334.5 MB, free: 12.82 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.885e-06/0.09651, allocations: 0 / 334.5 MB, free: 12.82 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.042e-06/0.09652, allocations: 4 kB / 334.5 MB, free: 12.82 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.124e-05/0.09655, allocations: 8.797 kB / 334.5 MB, free: 12.81 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.09656, allocations: 15.92 kB / 334.5 MB, free: 12.79 MB / 286.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.534e-05/0.09662, allocations: 37.7 kB / 334.5 MB, free: 12.75 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.09664, allocations: 4 kB / 334.5 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.09665, allocations: 0 / 334.5 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.09667, allocations: 3.938 kB / 334.5 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.928e-05/0.09669, allocations: 0 / 334.5 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.0967, allocations: 0 / 334.5 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.575e-05/0.09672, allocations: 0 / 334.5 MB, free: 12.74 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.659e-06/0.09673, allocations: 4 kB / 334.6 MB, free: 12.74 MB / 286.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.351e-05/0.09681, allocations: 113.8 kB / 334.7 MB, free: 12.62 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.04e-05/0.09682, allocations: 3.984 kB / 334.7 MB, free: 12.61 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.746e-05/0.09686, allocations: 11.08 kB / 334.7 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.09686, allocations: 0 / 334.7 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.09687, allocations: 0 / 334.7 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.09688, allocations: 0 / 334.7 MB, free: 12.6 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001222/0.097, allocations: 157.6 kB / 334.8 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.09701, allocations: 0 / 334.8 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.418e-06/0.09702, allocations: 3.938 kB / 334.8 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.09703, allocations: 0 / 334.8 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.511e-06/0.09704, allocations: 4 kB / 334.8 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.09704, allocations: 0 / 334.8 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-07/0.09705, allocations: 0 / 334.8 MB, free: 12.39 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.303e-05/0.09711, allocations: 65.06 kB / 334.9 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.976e-05/0.09716, allocations: 77.11 kB / 335 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.105e-05/0.09718, allocations: 0 / 335 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.481e-05/0.0972, allocations: 4 kB / 335 MB, free: 12.21 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.329e-05/0.09721, allocations: 4 kB / 335 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-06/0.09722, allocations: 4.031 kB / 335 MB, free: 12.2 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.669e-05/0.09726, allocations: 83.45 kB / 335.1 MB, free: 12.12 MB / 286.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.09727, allocations: 0 / 335.1 MB, free: 12.12 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003689/0.09764, allocations: 131.9 kB / 335.2 MB, free: 11.99 MB / 286.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.001045/0.09869, allocations: 0.968 MB / 336.2 MB, free: 11.01 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 5.611e-05/0.09876, allocations: 4 kB / 336.2 MB, free: 11 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.09877, allocations: 0 / 336.2 MB, free: 11 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.813e-06/0.09878, allocations: 4 kB / 336.2 MB, free: 11 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001303/0.09892, allocations: 7.984 kB / 336.2 MB, free: 10.99 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009173/0.09984, allocations: 1.142 MB / 337.3 MB, free: 9.77 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002337/0.1001, allocations: 0.6807 MB / 338 MB, free: 9.062 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.616e-05/0.1001, allocations: 7.984 kB / 338 MB, free: 9.055 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.736e-05/0.1002, allocations: 11.44 kB / 338 MB, free: 9.043 MB / 286.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1002, allocations: 0 / 338 MB, free: 9.043 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0151/0.1153, allocations: 3.807 MB / 341.8 MB, free: 5.211 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002378/0.1155, allocations: 240.1 kB / 342.1 MB, free: 4.957 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.934/2.05, allocations: 0 / 342.1 MB, free: 4.957 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Utilities_Examples_readRealParameterModel_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","../files/Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches