Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",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.005611/0.005611, allocations: 100.7 kB / 15.73 MB, free: 6.008 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.001118/0.001119, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.3/1.3, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7988/0.7988, allocations: 135.1 MB / 425.7 MB, free: 4.121 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 62.62 kB / 0.5851 GB, free: 21.86 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1656/0.1669, allocations: 80.93 MB / 0.6642 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.6038/0.7707, allocations: 194 MB / 0.8536 GB, free: 11.11 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.011/0.7818, allocations: 6.938 MB / 0.8604 GB, free: 5.445 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001886/0.7837, allocations: 46.69 kB / 0.8604 GB, free: 5.426 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002103/0.7859, allocations: 0.702 MB / 0.8611 GB, free: 4.828 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.006287/0.7922, allocations: 2.436 MB / 0.8635 GB, free: 2.988 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003446/0.7956, allocations: 1.43 MB / 0.8649 GB, free: 1.918 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.003959/0.7996, allocations: 3.002 MB / 0.8678 GB, free: 15.05 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00121/0.8008, allocations: 0.8886 MB / 0.8687 GB, free: 14.16 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002443/0.8033, allocations: 1.156 MB / 0.8698 GB, free: 13 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00114/0.8045, allocations: 0.795 MB / 0.8706 GB, free: 12.21 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0001539/0.8046, allocations: 104 kB / 0.8707 GB, free: 12.11 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003623/0.8082, allocations: 2.066 MB / 0.8727 GB, free: 10.04 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0003573/0.8086, allocations: 366.9 kB / 0.8731 GB, free: 9.68 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0006536/0.8093, allocations: 0.5869 MB / 0.8736 GB, free: 9.09 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.003655/0.8129, allocations: 2.415 MB / 0.876 GB, free: 6.668 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.813, allocations: 4 kB / 0.876 GB, free: 6.664 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.603e-06/0.813, allocations: 3.938 kB / 0.876 GB, free: 6.66 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.961e-05/0.813, allocations: 0 / 0.876 GB, free: 6.66 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.003264/0.8163, allocations: 1.633 MB / 0.8776 GB, free: 4.969 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.8163, allocations: 13.11 kB / 0.8776 GB, free: 4.957 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001412/0.8165, allocations: 114.5 kB / 0.8777 GB, free: 4.836 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002684/0.8192, allocations: 0.5292 MB / 0.8782 GB, free: 4.305 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002093/0.8213, allocations: 1.041 MB / 0.8793 GB, free: 3.219 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.942e-05/0.8213, allocations: 53.31 kB / 0.8793 GB, free: 3.168 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001226/0.8215, allocations: 75.97 kB / 0.8794 GB, free: 3.094 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002237/0.8237, allocations: 1.105 MB / 0.8805 GB, free: 1.961 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.8238, allocations: 0 / 0.8805 GB, free: 1.961 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.445e-05/0.8238, allocations: 32 kB / 0.8805 GB, free: 1.93 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.33e-05/0.8239, allocations: 41.3 kB / 0.8805 GB, free: 1.891 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002835/0.8267, allocations: 1.16 MB / 0.8817 GB, free: 0.7266 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005287/0.832, allocations: 3.155 MB / 0.8847 GB, free: 13.49 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001641/0.8337, allocations: 0.6802 MB / 0.8854 GB, free: 12.8 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007398/0.8345, allocations: 430.7 kB / 0.8858 GB, free: 12.38 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008653/0.8353, allocations: 1.017 MB / 0.8868 GB, free: 11.14 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009482/0.8363, allocations: 0.5143 MB / 0.8873 GB, free: 10.6 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=57): time 6.062e-06/0.8363, allocations: 0 / 0.8873 GB, free: 10.6 MB / 0.6544 GB Notification: Performance of matching and sorting (n=57): time 0.002851/0.8392, allocations: 1.232 MB / 0.8885 GB, free: 9.355 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.481e-05/0.8393, allocations: 140.9 kB / 0.8886 GB, free: 9.188 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001787/0.8411, allocations: 1.172 MB / 0.8898 GB, free: 8 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 7.718e-05/0.8412, allocations: 41.7 kB / 0.8898 GB, free: 7.953 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003689/0.8415, allocations: 437.4 kB / 0.8903 GB, free: 7.523 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001594/0.8417, allocations: 189.2 kB / 0.8904 GB, free: 7.336 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002747/0.842, allocations: 146.1 kB / 0.8906 GB, free: 7.184 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.8421, allocations: 326 kB / 0.8909 GB, free: 6.859 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001097/0.8432, allocations: 448.8 kB / 0.8913 GB, free: 6.422 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001303/0.8445, allocations: 0.5984 MB / 0.8919 GB, free: 5.781 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00189/0.8464, allocations: 0.9227 MB / 0.8928 GB, free: 4.797 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.8464, allocations: 4 kB / 0.8928 GB, free: 4.793 MB / 0.6544 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002836/0.8493, allocations: 1.193 MB / 0.894 GB, free: 3.594 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.657e-05/0.8493, allocations: 45.62 kB / 0.894 GB, free: 3.543 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.8494, allocations: 4 kB / 0.894 GB, free: 3.539 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.564e-05/0.8494, allocations: 16.22 kB / 0.894 GB, free: 3.523 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008833/0.8503, allocations: 179.8 kB / 0.8942 GB, free: 3.348 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.466e-05/0.8503, allocations: 13.42 kB / 0.8942 GB, free: 3.336 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/0.8517, allocations: 242.8 kB / 0.8944 GB, free: 3.098 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.747e-05/0.8518, allocations: 31.98 kB / 0.8945 GB, free: 3.066 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 7 (QSen_flow.nextEventScaled,QSen_flow.nextEvent,$PRE.QSen_flow.nextEvent,QSen_flow.last,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 1 * 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.0005026/0.8523, allocations: 333.5 kB / 0.8948 GB, free: 2.727 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001985/0.8525, allocations: 110.7 kB / 0.8949 GB, free: 2.617 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002003/0.8545, allocations: 0.9951 MB / 0.8959 GB, free: 1.605 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.346e-05/0.8545, allocations: 12 kB / 0.8959 GB, free: 1.594 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.8546, allocations: 0 / 0.8959 GB, free: 1.594 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/0.8546, allocations: 7.984 kB / 0.8959 GB, free: 1.586 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00469/0.8593, allocations: 3.161 MB / 0.899 GB, free: 14.27 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.276e-05/0.8593, allocations: 15.98 kB / 0.899 GB, free: 14.26 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005644/0.8599, allocations: 124.2 kB / 0.8991 GB, free: 14.14 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.147e-05/0.8599, allocations: 8 kB / 0.8991 GB, free: 14.13 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.558e-05/0.86, allocations: 23.98 kB / 0.8991 GB, free: 14.11 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.184e-05/0.86, allocations: 11.94 kB / 0.8992 GB, free: 14.09 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/0.86, allocations: 8 kB / 0.8992 GB, free: 14.09 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002065/0.8621, allocations: 1.341 MB / 0.9005 GB, free: 12.62 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005371/0.8626, allocations: 327.4 kB / 0.9008 GB, free: 12.29 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001389/0.8628, allocations: 24 kB / 0.9008 GB, free: 12.26 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/0.8638, allocations: 103.9 kB / 0.9009 GB, free: 12.16 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.8639, allocations: 63.7 kB / 0.901 GB, free: 12.1 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.632e-05/0.864, allocations: 39.97 kB / 0.901 GB, free: 12.06 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001352/0.8653, allocations: 0.8482 MB / 0.9018 GB, free: 11.2 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8653, allocations: 0 / 0.9018 GB, free: 11.2 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001047/0.8664, allocations: 303.8 kB / 0.9021 GB, free: 10.91 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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.002855/0.8693, allocations: 2.129 MB / 0.9042 GB, free: 8.664 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002229/0.8715, allocations: 1.021 MB / 0.9052 GB, free: 7.633 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.8715, allocations: 0 / 0.9052 GB, free: 7.633 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0009002/0.8724, allocations: 0.5124 MB / 0.9057 GB, free: 7.109 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00256/0.875, allocations: 0.5473 MB / 0.9062 GB, free: 6.57 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01649/0.8915, allocations: 9.378 MB / 0.9154 GB, free: 12.79 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000796/0.8924, allocations: 1.069 MB / 0.9164 GB, free: 11.69 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001101/0.8935, allocations: 271 kB / 0.9167 GB, free: 11.43 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005712/0.8941, allocations: 359.3 kB / 0.917 GB, free: 11.07 MB / 0.6856 GB Notification: Performance of SimCode: time 1.152e-06/0.8941, allocations: 4 kB / 0.917 GB, free: 11.07 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06363/0.9577, allocations: 31.76 MB / 0.9481 GB, free: 11.63 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.371/10.33, allocations: 3.938 kB / 0.9481 GB, free: 11.63 MB / 0.7169 GB (rm -f IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)