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.0009586/0.0009588, allocations: 97.3 kB / 17.3 MB, free: 6.344 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.001148/0.001148, allocations: 178.5 kB / 18.21 MB, free: 5.531 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.492/1.492, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004296/0.0004296, allocations: 12 kB / 281.5 MB, free: 3.332 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08608/0.08652, allocations: 47.58 MB / 329 MB, free: 3.676 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001383/0.08794, allocations: 0.9179 MB / 330 MB, free: 2.746 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002933/0.0909, allocations: 1.996 MB / 332 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.521e-05/0.09094, allocations: 0 / 332 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 1.796e-05/0.09097, allocations: 0 / 332 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001034/0.09201, allocations: 327.2 kB / 332.3 MB, free: 428 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.09e-05/0.09204, allocations: 8 kB / 332.3 MB, free: 420 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 4.456e-05/0.09209, allocations: 15.92 kB / 332.3 MB, free: 404 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.915e-05/0.09214, allocations: 0 / 332.3 MB, free: 404 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.009e-05/0.09216, allocations: 4 kB / 332.3 MB, free: 400 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002562/0.09243, allocations: 11.92 kB / 332.3 MB, free: 388 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 9.798e-06/0.09245, allocations: 0 / 332.3 MB, free: 388 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006239/0.09308, allocations: 427.6 kB / 332.7 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.401e-05/0.0931, allocations: 3.938 kB / 332.7 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.627e-05/0.09315, allocations: 29.69 kB / 332.8 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004274/0.09359, allocations: 331.4 kB / 333.1 MB, free: 15.6 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.0936, allocations: 0 / 333.1 MB, free: 15.6 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.09361, allocations: 7.984 kB / 333.1 MB, free: 15.59 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.958e-06/0.09362, allocations: 0 / 333.1 MB, free: 15.59 MB / 286.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.0004425/0.09407, allocations: 403.7 kB / 333.5 MB, free: 15.15 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.09412, allocations: 11.97 kB / 333.5 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.614e-05/0.09419, allocations: 106 kB / 333.6 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.647e-05/0.09426, allocations: 80.22 kB / 333.7 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001772/0.09444, allocations: 243.6 kB / 333.9 MB, free: 14.67 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.127e-05/0.09451, allocations: 162.9 kB / 334.1 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.699e-05/0.09456, allocations: 158.5 kB / 334.2 MB, free: 14.35 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.583e-05/0.09463, allocations: 101 kB / 334.3 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.693e-05/0.09467, allocations: 75.28 kB / 334.4 MB, free: 14.17 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.132e-05/0.09473, allocations: 154.6 kB / 334.6 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.213e-05/0.09478, allocations: 150.6 kB / 334.7 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.159e-05/0.09485, allocations: 158.5 kB / 334.9 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002727/0.09513, allocations: 453.9 kB / 335.3 MB, free: 13.22 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.296e-05/0.09522, allocations: 169.1 kB / 335.5 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.199e-05/0.09526, allocations: 80.14 kB / 335.6 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.843e-05/0.09529, allocations: 79.28 kB / 335.6 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001209/0.09542, allocations: 47.41 kB / 335.7 MB, free: 12.83 MB / 286.1 MB Notification: Performance of pre-optimization done (n=1): time 3.977e-06/0.09543, allocations: 0 / 335.7 MB, free: 12.83 MB / 286.1 MB Notification: Performance of matching and sorting (n=1): time 0.000119/0.09555, allocations: 37.64 kB / 335.7 MB, free: 12.79 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.348e-05/0.09559, allocations: 55.39 kB / 335.8 MB, free: 12.72 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.315e-05/0.09567, allocations: 97.98 kB / 335.9 MB, free: 12.61 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.06e-05/0.09569, allocations: 29.7 kB / 335.9 MB, free: 12.58 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.017e-05/0.09573, allocations: 84.14 kB / 336 MB, free: 12.49 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.191e-05/0.09575, allocations: 3.906 kB / 336 MB, free: 12.49 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.951e-05/0.09577, allocations: 9.719 kB / 336 MB, free: 12.47 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.09588, allocations: 318.9 kB / 336.3 MB, free: 12.15 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.366e-06/0.09589, allocations: 0 / 336.3 MB, free: 12.15 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.402e-06/0.09591, allocations: 11.94 kB / 336.3 MB, free: 12.14 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.059e-05/0.09593, allocations: 12.86 kB / 336.3 MB, free: 12.12 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.09594, allocations: 3.938 kB / 336.3 MB, free: 12.12 MB / 286.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.343e-05/0.096, allocations: 33.7 kB / 336.4 MB, free: 12.08 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.09602, allocations: 4 kB / 336.4 MB, free: 12.08 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.09603, allocations: 0 / 336.4 MB, free: 12.08 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.09604, allocations: 0 / 336.4 MB, free: 12.08 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.978e-05/0.09606, allocations: 3.984 kB / 336.4 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.09607, allocations: 0 / 336.4 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.472e-05/0.09609, allocations: 4 kB / 336.4 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-06/0.0961, allocations: 0 / 336.4 MB, free: 12.07 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 6.956e-05/0.09618, allocations: 117.8 kB / 336.5 MB, free: 11.95 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.432e-06/0.09619, allocations: 0 / 336.5 MB, free: 11.95 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.07e-05/0.09622, allocations: 11.08 kB / 336.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.09623, allocations: 0 / 336.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.09623, allocations: 0 / 336.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.09624, allocations: 3.938 kB / 336.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001161/0.09636, allocations: 157.6 kB / 336.7 MB, free: 11.72 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.09637, allocations: 3.938 kB / 336.7 MB, free: 11.72 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.865e-06/0.09638, allocations: 0 / 336.7 MB, free: 11.72 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.09638, allocations: 0 / 336.7 MB, free: 11.72 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.82e-06/0.09639, allocations: 4 kB / 336.7 MB, free: 11.71 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.0964, allocations: 0 / 336.7 MB, free: 11.71 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.0964, allocations: 3.984 kB / 336.7 MB, free: 11.71 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.678e-05/0.09647, allocations: 57.08 kB / 336.7 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.012e-05/0.09651, allocations: 81.11 kB / 336.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.27e-05/0.09653, allocations: 3.984 kB / 336.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.215e-05/0.09655, allocations: 4 kB / 336.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.256e-06/0.09657, allocations: 4.031 kB / 336.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.693e-06/0.09657, allocations: 0 / 336.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.316e-05/0.09661, allocations: 79.28 kB / 336.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09661, allocations: 0 / 336.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003532/0.09697, allocations: 135.9 kB / 337 MB, free: 11.32 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.001068/0.09805, allocations: 0.9703 MB / 338 MB, free: 10.34 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 5.577e-05/0.09811, allocations: 0 / 338 MB, free: 10.34 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.09813, allocations: 4 kB / 338 MB, free: 10.33 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.839e-06/0.09814, allocations: 0 / 338 MB, free: 10.33 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001432/0.09829, allocations: 0 / 338 MB, free: 10.33 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001024/0.09932, allocations: 1.16 MB / 339.2 MB, free: 9.09 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.09957, allocations: 0.681 MB / 339.8 MB, free: 8.383 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.54e-05/0.0996, allocations: 7.984 kB / 339.8 MB, free: 8.375 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.747e-05/0.09963, allocations: 11.44 kB / 339.9 MB, free: 8.363 MB / 286.1 MB Notification: Performance of SimCode: time 2.7e-07/0.09964, allocations: 0 / 339.9 MB, free: 8.363 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01564/0.1153, allocations: 3.685 MB / 343.5 MB, free: 4.664 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001795/0.1155, allocations: 247.3 kB / 343.8 MB, free: 4.402 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.849/1.965, allocations: 7.938 kB / 343.8 MB, free: 4.395 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