Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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(BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_VolumeFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_VolumeFlowRate",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.001296/0.001296, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 196.7 kB / 16.53 MB, free: 6.664 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.262/1.262, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002155/0.002156, allocations: 278.9 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9034/0.9034, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002008, allocations: 104.2 kB / 0.5953 GB, free: 27.56 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1608/0.1628, allocations: 86.97 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate): time 0.4647/0.6275, allocations: 167.3 MB / 0.8437 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00264/0.6302, allocations: 1.555 MB / 0.8452 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002859/0.6305, allocations: 12.19 kB / 0.8452 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004881/0.6311, allocations: 150.4 kB / 0.8454 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001809/0.6329, allocations: 0.7012 MB / 0.8461 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001519/0.6344, allocations: 0.5957 MB / 0.8466 GB, free: 14.92 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007471/0.6352, allocations: 0.6981 MB / 0.8473 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003724/0.6355, allocations: 230.3 kB / 0.8475 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005714/0.6361, allocations: 335 kB / 0.8479 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002697/0.6364, allocations: 220.9 kB / 0.8481 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.54e-05/0.6365, allocations: 22.69 kB / 0.8481 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001415/0.6379, allocations: 0.8651 MB / 0.8489 GB, free: 13.76 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.638, allocations: 112.9 kB / 0.849 GB, free: 13.69 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001502/0.6382, allocations: 159.9 kB / 0.8492 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0009/0.6391, allocations: 0.7202 MB / 0.8499 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.6391, allocations: 3.5 kB / 0.8499 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.643e-06/0.6391, allocations: 0 / 0.8499 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.063e-05/0.6391, allocations: 0 / 0.8499 GB, free: 13.21 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008773/0.64, allocations: 0.6597 MB / 0.8505 GB, free: 12.63 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.64, allocations: 11.34 kB / 0.8506 GB, free: 12.62 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.584e-05/0.6401, allocations: 53.95 kB / 0.8506 GB, free: 12.57 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001056/0.6412, allocations: 156.2 kB / 0.8508 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004037/0.6416, allocations: 304.6 kB / 0.851 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.6416, allocations: 16.53 kB / 0.8511 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.423e-05/0.6417, allocations: 27.62 kB / 0.8511 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004516/0.6421, allocations: 276.1 kB / 0.8514 GB, free: 12 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.6421, allocations: 0 / 0.8514 GB, free: 12 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.346e-05/0.6422, allocations: 10.38 kB / 0.8514 GB, free: 12 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.6422, allocations: 10.33 kB / 0.8514 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004308/0.6426, allocations: 200 kB / 0.8516 GB, free: 11.9 MB / 0.5762 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001355/0.644, allocations: 1.208 MB / 0.8527 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002612/0.6443, allocations: 137.2 kB / 0.8529 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001701/0.6444, allocations: 93.77 kB / 0.853 GB, free: 10.67 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006341/0.6451, allocations: 303.7 kB / 0.8533 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.021e-05/0.6452, allocations: 38.5 kB / 0.8533 GB, free: 10.31 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=15): time 2.776e-06/0.6452, allocations: 3.984 kB / 0.8533 GB, free: 10.31 MB / 0.5762 GB Notification: Performance of matching and sorting (n=15): time 0.0006945/0.6459, allocations: 280.9 kB / 0.8536 GB, free: 10.17 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.13e-05/0.6459, allocations: 55.41 kB / 0.8536 GB, free: 10.1 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002892/0.6462, allocations: 316 kB / 0.8539 GB, free: 9.898 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.6463, allocations: 28.3 kB / 0.8539 GB, free: 9.867 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.6464, allocations: 179.9 kB / 0.8541 GB, free: 9.703 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.368e-05/0.6465, allocations: 56.23 kB / 0.8542 GB, free: 9.656 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.688e-05/0.6465, allocations: 42.52 kB / 0.8542 GB, free: 9.625 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001395/0.6467, allocations: 338 kB / 0.8545 GB, free: 9.293 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/0.6469, allocations: 70.83 kB / 0.8546 GB, free: 9.258 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.6471, allocations: 130.3 kB / 0.8547 GB, free: 9.16 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003465/0.6474, allocations: 191.4 kB / 0.8549 GB, free: 9.035 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.6474, allocations: 0 / 0.8549 GB, free: 9.035 MB / 0.5762 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.00045/0.6479, allocations: 242.2 kB / 0.8551 GB, free: 8.902 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.6479, allocations: 7.625 kB / 0.8551 GB, free: 8.902 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.6479, allocations: 0 / 0.8551 GB, free: 8.902 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.6479, allocations: 2.781 kB / 0.8551 GB, free: 8.902 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001986/0.6482, allocations: 50 kB / 0.8552 GB, free: 8.887 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.6482, allocations: 2.75 kB / 0.8552 GB, free: 8.887 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001893/0.6484, allocations: 33.27 kB / 0.8552 GB, free: 8.863 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.431e-05/0.6484, allocations: 7.469 kB / 0.8552 GB, free: 8.863 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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 0.0001341/0.6485, allocations: 156.4 kB / 0.8554 GB, free: 8.719 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.212e-05/0.6486, allocations: 26.34 kB / 0.8554 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004516/0.649, allocations: 220.1 kB / 0.8556 GB, free: 8.57 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.6491, allocations: 4.438 kB / 0.8556 GB, free: 8.57 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.6491, allocations: 0 / 0.8556 GB, free: 8.57 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.6491, allocations: 3.938 kB / 0.8556 GB, free: 8.566 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009266/0.65, allocations: 0.6869 MB / 0.8563 GB, free: 7.988 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.65, allocations: 0 / 0.8563 GB, free: 7.988 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001544/0.6502, allocations: 29.02 kB / 0.8563 GB, free: 7.984 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.6502, allocations: 6.188 kB / 0.8563 GB, free: 7.98 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.6502, allocations: 5.281 kB / 0.8563 GB, free: 7.98 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.6502, allocations: 6.844 kB / 0.8563 GB, free: 7.977 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.6502, allocations: 4 kB / 0.8563 GB, free: 7.973 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005973/0.6508, allocations: 439.5 kB / 0.8568 GB, free: 7.645 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001083/0.651, allocations: 124.4 kB / 0.8569 GB, free: 7.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.599e-05/0.651, allocations: 12.25 kB / 0.8569 GB, free: 7.512 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001649/0.6512, allocations: 5.281 kB / 0.8569 GB, free: 7.512 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.993e-05/0.6512, allocations: 19.52 kB / 0.8569 GB, free: 7.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.6513, allocations: 4.594 kB / 0.8569 GB, free: 7.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001893/0.6514, allocations: 226.5 kB / 0.8571 GB, free: 7.355 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6515, allocations: 0 / 0.8571 GB, free: 7.355 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003664/0.6518, allocations: 77.64 kB / 0.8572 GB, free: 7.344 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 1 (senDyn.d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.001129/0.653, allocations: 1.036 MB / 0.8582 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0003992/0.6534, allocations: 177.7 kB / 0.8584 GB, free: 6.375 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.6534, allocations: 0 / 0.8584 GB, free: 6.375 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001762/0.6536, allocations: 90.23 kB / 0.8585 GB, free: 6.336 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00083/0.6544, allocations: 167.6 kB / 0.8586 GB, free: 6.258 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003249/0.6577, allocations: 2.916 MB / 0.8615 GB, free: 4.043 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.658, allocations: 0.7818 MB / 0.8623 GB, free: 3.297 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002043/0.6582, allocations: 61.98 kB / 0.8623 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.6583, allocations: 89.19 kB / 0.8624 GB, free: 3.203 MB / 0.5762 GB Notification: Performance of SimCode: time 2.61e-07/0.6583, allocations: 0 / 0.8624 GB, free: 3.203 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03021/0.6885, allocations: 8.767 MB / 0.871 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.157/7.846, allocations: 6.109 kB / 0.871 GB, free: 14.89 MB / 0.5919 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_VolumeFlowRate_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_VolumeFlowRate.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.pipe 2>&1)