Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IDEAS_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.001507/0.001507, allocations: 100.5 kB / 15.05 MB, free: 1.105 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.001936/0.001936, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.379/2.379, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.214/1.214, allocations: 132.2 MB / 423.2 MB, free: 2.215 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005587/0.0005589, allocations: 8 kB / 0.5033 GB, free: 4.242 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7795/0.7801, allocations: 81.57 MB / 0.583 GB, free: 3.902 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.3061/1.086, allocations: 162 MB / 0.7411 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0159/1.102, allocations: 6.283 MB / 0.7473 GB, free: 7.867 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002337/1.105, allocations: 35.69 kB / 0.7473 GB, free: 7.832 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.00346/1.108, allocations: 0.6649 MB / 0.748 GB, free: 7.164 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00875/1.117, allocations: 1.665 MB / 0.7496 GB, free: 5.496 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.007767/1.125, allocations: 1.539 MB / 0.7511 GB, free: 4.008 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.005993/1.131, allocations: 1.701 MB / 0.7528 GB, free: 2.301 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002342/1.133, allocations: 0.7284 MB / 0.7535 GB, free: 1.559 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003606/1.137, allocations: 0.911 MB / 0.7544 GB, free: 0.6445 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001736/1.139, allocations: 0.529 MB / 0.7549 GB, free: 116 kB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002117/1.139, allocations: 40 kB / 0.7549 GB, free: 76 kB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005065/1.144, allocations: 1.174 MB / 0.7561 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0006007/1.144, allocations: 283.1 kB / 0.7563 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006008/1.145, allocations: 233.1 kB / 0.7565 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003407/1.149, allocations: 1.551 MB / 0.7581 GB, free: 12.83 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/1.149, allocations: 0 / 0.7581 GB, free: 12.83 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.925e-06/1.149, allocations: 0 / 0.7581 GB, free: 12.83 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.644e-05/1.149, allocations: 0 / 0.7581 GB, free: 12.83 MB / 0.5919 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.005445/1.154, allocations: 1.389 MB / 0.7594 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 7.901e-05/1.154, allocations: 12.03 kB / 0.7594 GB, free: 11.37 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003457/1.154, allocations: 110.5 kB / 0.7595 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004588/1.159, allocations: 0.6073 MB / 0.7601 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003074/1.162, allocations: 0.9174 MB / 0.761 GB, free: 9.688 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001761/1.164, allocations: 317 kB / 0.7613 GB, free: 9.379 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002315/1.164, allocations: 64 kB / 0.7614 GB, free: 9.316 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004166/1.168, allocations: 1.152 MB / 0.7625 GB, free: 8.133 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.025e-05/1.168, allocations: 3.938 kB / 0.7625 GB, free: 8.129 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002451/1.169, allocations: 28 kB / 0.7625 GB, free: 8.102 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.968e-05/1.169, allocations: 37.25 kB / 0.7626 GB, free: 8.062 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005301/1.174, allocations: 1.25 MB / 0.7638 GB, free: 6.812 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01061/1.185, allocations: 3.256 MB / 0.767 GB, free: 3.48 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002629/1.188, allocations: 0.6979 MB / 0.7677 GB, free: 2.777 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007982/1.188, allocations: 0.6692 MB / 0.7683 GB, free: 1.961 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001699/1.19, allocations: 0.5222 MB / 0.7688 GB, free: 1.418 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=57): time 2.996e-06/1.19, allocations: 3.938 kB / 0.7688 GB, free: 1.414 MB / 0.5919 GB Notification: Performance of matching and sorting (n=57): time 0.005451/1.196, allocations: 1.312 MB / 0.7701 GB, free: 72 kB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003941/1.196, allocations: 140.9 kB / 0.7702 GB, free: 15.9 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004157/1.2, allocations: 1.219 MB / 0.7714 GB, free: 14.67 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0003238/1.201, allocations: 41.64 kB / 0.7715 GB, free: 14.62 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006857/1.201, allocations: 453.4 kB / 0.7719 GB, free: 14.18 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003224/1.202, allocations: 185.3 kB / 0.7721 GB, free: 13.99 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.542e-05/1.202, allocations: 12 kB / 0.7721 GB, free: 13.98 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001886/1.202, allocations: 326 kB / 0.7724 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001946/1.204, allocations: 484.9 kB / 0.7729 GB, free: 13.18 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002267/1.206, allocations: 0.6367 MB / 0.7735 GB, free: 12.5 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002023/1.208, allocations: 0.5385 MB / 0.774 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/1.208, allocations: 0 / 0.774 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004787/1.213, allocations: 1.284 MB / 0.7753 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.303e-05/1.213, allocations: 41.69 kB / 0.7753 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/1.213, allocations: 4 kB / 0.7753 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.669e-05/1.213, allocations: 7.984 kB / 0.7753 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001408/1.215, allocations: 216 kB / 0.7755 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.123e-05/1.215, allocations: 11.92 kB / 0.7755 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00246/1.217, allocations: 306.8 kB / 0.7758 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001518/1.217, allocations: 31.98 kB / 0.7759 GB, free: 10.05 MB / 0.6075 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 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000875/1.218, allocations: 331.8 kB / 0.7762 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004198/1.219, allocations: 114.6 kB / 0.7763 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003359/1.222, allocations: 1.013 MB / 0.7773 GB, free: 8.574 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-05/1.222, allocations: 4 kB / 0.7773 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/1.222, allocations: 4 kB / 0.7773 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/1.222, allocations: 11.92 kB / 0.7773 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008094/1.23, allocations: 3.179 MB / 0.7804 GB, free: 5.223 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.815e-05/1.23, allocations: 8 kB / 0.7804 GB, free: 5.215 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008431/1.231, allocations: 124.1 kB / 0.7805 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.982e-05/1.231, allocations: 12 kB / 0.7805 GB, free: 5.082 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.111e-05/1.231, allocations: 27.98 kB / 0.7806 GB, free: 5.055 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.755e-05/1.231, allocations: 11.98 kB / 0.7806 GB, free: 5.043 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.721e-05/1.231, allocations: 15.89 kB / 0.7806 GB, free: 5.027 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0036/1.235, allocations: 1.742 MB / 0.7823 GB, free: 3.012 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009516/1.236, allocations: 343.2 kB / 0.7826 GB, free: 2.656 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002373/1.236, allocations: 20 kB / 0.7826 GB, free: 2.637 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001653/1.238, allocations: 127.9 kB / 0.7828 GB, free: 2.512 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001545/1.238, allocations: 59.78 kB / 0.7828 GB, free: 2.453 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/1.238, allocations: 39.97 kB / 0.7829 GB, free: 2.414 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.002369/1.24, allocations: 0.8872 MB / 0.7837 GB, free: 1.52 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.7e-07/1.24, allocations: 4 kB / 0.7837 GB, free: 1.516 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001786/1.242, allocations: 295.9 kB / 0.784 GB, free: 1.227 MB / 0.6075 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005986/1.248, allocations: 4.642 MB / 0.7885 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.00372/1.252, allocations: 1.045 MB / 0.7896 GB, free: 11.3 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.396e-05/1.252, allocations: 4 kB / 0.7896 GB, free: 11.29 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001444/1.254, allocations: 0.5203 MB / 0.7901 GB, free: 10.76 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004595/1.258, allocations: 0.5333 MB / 0.7906 GB, free: 10.25 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02618/1.284, allocations: 9.038 MB / 0.7994 GB, free: 0.8164 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001103/1.286, allocations: 1.092 MB / 0.8005 GB, free: 15.69 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.00207/1.288, allocations: 270.2 kB / 0.8007 GB, free: 15.43 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008091/1.288, allocations: 367.2 kB / 0.8011 GB, free: 15.07 MB / 0.6387 GB Notification: Performance of SimCode: time 1.302e-06/1.288, allocations: 3.938 kB / 0.8011 GB, free: 15.06 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5864/1.875, allocations: 30.84 MB / 0.8312 GB, free: 210.8 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003294/1.875, allocations: 234 kB / 0.8314 GB, free: 210.5 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.945/5.82, allocations: 0 / 0.8314 GB, free: 210.5 MB / 0.6387 GB (rm -f IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) Environment - environmentSimulation: