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.001435/0.001435, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001683/0.001684, allocations: 195.7 kB / 16.14 MB, free: 6.656 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.319/1.319, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8598/0.8598, allocations: 135.1 MB / 425.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 64.28 kB / 0.5048 GB, free: 5.645 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1351, allocations: 80.93 MB / 0.5838 GB, free: 4.883 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.4074/0.5425, allocations: 191.6 MB / 0.7709 GB, free: 13.58 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01001/0.5525, allocations: 6.991 MB / 0.7778 GB, free: 6.578 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001242/0.5538, allocations: 43.69 kB / 0.7778 GB, free: 6.535 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001653/0.5555, allocations: 0.5632 MB / 0.7784 GB, free: 5.969 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00516/0.5607, allocations: 2.175 MB / 0.7805 GB, free: 3.785 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003/0.5637, allocations: 1.28 MB / 0.7817 GB, free: 2.535 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.004015/0.5677, allocations: 3.742 MB / 0.7854 GB, free: 14.79 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001258/0.569, allocations: 0.7867 MB / 0.7862 GB, free: 13.99 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001769/0.5708, allocations: 0.9725 MB / 0.7871 GB, free: 13.01 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001795/0.5726, allocations: 0.8116 MB / 0.7879 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0002076/0.5728, allocations: 48 kB / 0.788 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003794/0.5766, allocations: 2.221 MB / 0.7901 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0003881/0.577, allocations: 322.8 kB / 0.7904 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0007095/0.5777, allocations: 0.5284 MB / 0.7909 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.003296/0.581, allocations: 2.423 MB / 0.7933 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.581, allocations: 0 / 0.7933 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of FrontEnd: time 8.72e-07/0.581, allocations: 0 / 0.7933 GB, free: 6.648 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.427e-05/0.5811, allocations: 0 / 0.7933 GB, free: 6.648 MB / 0.6075 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.003689/0.5848, allocations: 1.633 MB / 0.7949 GB, free: 4.957 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.5848, allocations: 12.03 kB / 0.7949 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001612/0.585, allocations: 110.5 kB / 0.795 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003091/0.5881, allocations: 0.5331 MB / 0.7955 GB, free: 4.293 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002117/0.5902, allocations: 0.9896 MB / 0.7965 GB, free: 3.266 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001227/0.5914, allocations: 277 kB / 0.7968 GB, free: 2.996 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.5916, allocations: 67.98 kB / 0.7968 GB, free: 2.93 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002891/0.5945, allocations: 1.128 MB / 0.7979 GB, free: 1.773 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.5945, allocations: 3.984 kB / 0.7979 GB, free: 1.77 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.32e-05/0.5946, allocations: 28 kB / 0.798 GB, free: 1.742 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.252e-05/0.5947, allocations: 33.31 kB / 0.798 GB, free: 1.707 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003325/0.598, allocations: 1.203 MB / 0.7992 GB, free: 0.5 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005829/0.6038, allocations: 3.199 MB / 0.8023 GB, free: 13.23 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001702/0.6056, allocations: 0.6861 MB / 0.803 GB, free: 12.53 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008124/0.6064, allocations: 432.7 kB / 0.8034 GB, free: 12.11 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008296/0.6072, allocations: 1.017 MB / 0.8044 GB, free: 10.87 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001021/0.6083, allocations: 0.5182 MB / 0.8049 GB, free: 10.33 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=57): time 2.214e-06/0.6083, allocations: 3.938 kB / 0.8049 GB, free: 10.33 MB / 0.6231 GB Notification: Performance of matching and sorting (n=57): time 0.00295/0.6112, allocations: 1.225 MB / 0.8061 GB, free: 9.09 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.898e-05/0.6113, allocations: 144.9 kB / 0.8062 GB, free: 8.918 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001934/0.6133, allocations: 1.196 MB / 0.8074 GB, free: 7.707 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 7.621e-05/0.6133, allocations: 37.7 kB / 0.8074 GB, free: 7.664 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003503/0.6137, allocations: 445.4 kB / 0.8078 GB, free: 7.227 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.6139, allocations: 181.4 kB / 0.808 GB, free: 7.047 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002733/0.6141, allocations: 150 kB / 0.8082 GB, free: 6.895 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.6143, allocations: 334 kB / 0.8085 GB, free: 6.562 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001339/0.6156, allocations: 452.9 kB / 0.8089 GB, free: 6.121 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001506/0.6171, allocations: 0.6171 MB / 0.8095 GB, free: 5.457 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002116/0.6193, allocations: 0.95 MB / 0.8104 GB, free: 4.453 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.6193, allocations: 0 / 0.8104 GB, free: 4.453 MB / 0.6231 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003217/0.6225, allocations: 1.236 MB / 0.8117 GB, free: 3.203 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.066e-05/0.6225, allocations: 40.19 kB / 0.8117 GB, free: 3.16 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.6226, allocations: 4 kB / 0.8117 GB, free: 3.156 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.6226, allocations: 8.219 kB / 0.8117 GB, free: 3.148 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/0.6236, allocations: 195.7 kB / 0.8119 GB, free: 2.957 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.457e-05/0.6236, allocations: 15.92 kB / 0.8119 GB, free: 2.941 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/0.6253, allocations: 274.9 kB / 0.8122 GB, free: 2.672 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.889e-05/0.6254, allocations: 35.97 kB / 0.8122 GB, free: 2.637 MB / 0.6231 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.0004374/0.6258, allocations: 327.3 kB / 0.8125 GB, free: 2.301 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002075/0.626, allocations: 114.6 kB / 0.8126 GB, free: 2.188 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00211/0.6282, allocations: 1.001 MB / 0.8136 GB, free: 1.172 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.43e-05/0.6282, allocations: 11.98 kB / 0.8136 GB, free: 1.16 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.6282, allocations: 0 / 0.8136 GB, free: 1.16 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.6282, allocations: 0 / 0.8136 GB, free: 1.16 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004749/0.633, allocations: 3.162 MB / 0.8167 GB, free: 13.85 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.234e-05/0.633, allocations: 8.562 kB / 0.8167 GB, free: 13.84 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006147/0.6336, allocations: 119.8 kB / 0.8168 GB, free: 13.72 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.288e-05/0.6336, allocations: 12 kB / 0.8168 GB, free: 13.71 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.903e-05/0.6337, allocations: 31.86 kB / 0.8169 GB, free: 13.68 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.107e-06/0.6337, allocations: 12 kB / 0.8169 GB, free: 13.67 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.124e-06/0.6337, allocations: 11.94 kB / 0.8169 GB, free: 13.66 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002106/0.6358, allocations: 1.345 MB / 0.8182 GB, free: 12.2 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004838/0.6363, allocations: 323.4 kB / 0.8185 GB, free: 11.86 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001856/0.6365, allocations: 23.98 kB / 0.8185 GB, free: 11.84 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001213/0.6377, allocations: 111.9 kB / 0.8186 GB, free: 11.73 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.6379, allocations: 67.69 kB / 0.8187 GB, free: 11.66 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.394e-05/0.638, allocations: 47.97 kB / 0.8187 GB, free: 11.61 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001503/0.6395, allocations: 0.8638 MB / 0.8196 GB, free: 10.74 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6395, allocations: 0 / 0.8196 GB, free: 10.74 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001021/0.6405, allocations: 291.8 kB / 0.8199 GB, free: 10.46 MB / 0.6387 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.002917/0.6434, allocations: 2.136 MB / 0.822 GB, free: 8.207 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002405/0.6458, allocations: 1.017 MB / 0.823 GB, free: 7.18 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.6459, allocations: 0 / 0.823 GB, free: 7.18 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0009243/0.6468, allocations: 0.5174 MB / 0.8235 GB, free: 6.652 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0027/0.6495, allocations: 0.5328 MB / 0.824 GB, free: 6.141 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01803/0.6675, allocations: 10.24 MB / 0.834 GB, free: 11.36 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006397/0.6682, allocations: 1.069 MB / 0.835 GB, free: 10.25 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001155/0.6694, allocations: 275.5 kB / 0.8353 GB, free: 9.98 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005367/0.6699, allocations: 359.3 kB / 0.8356 GB, free: 9.629 MB / 0.6544 GB Notification: Performance of SimCode: time 6.61e-07/0.6699, allocations: 0 / 0.8356 GB, free: 9.629 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.846/1.516, allocations: 30.58 MB / 0.8655 GB, free: 219.6 MB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002389/1.516, allocations: 261.1 kB / 0.8657 GB, free: 219.3 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.584/4.101, allocations: 0 / 0.8657 GB, free: 219.3 MB / 0.67 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)