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.01382/0.01382, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.003016/0.003016, allocations: 197 kB / 16.68 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.125/2.125, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.192/1.192, allocations: 132.2 MB / 422.7 MB, free: 6.594 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001866/0.001866, allocations: 65.61 kB / 0.5809 GB, free: 23.99 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2856, allocations: 80.22 MB / 0.6592 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.9696/1.255, allocations: 194 MB / 0.8486 GB, free: 0.8359 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01319/1.268, allocations: 6.93 MB / 0.8554 GB, free: 11.19 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002254/1.271, allocations: 40.19 kB / 0.8555 GB, free: 11.17 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.003507/1.274, allocations: 0.6944 MB / 0.8561 GB, free: 10.57 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.01054/1.285, allocations: 2.331 MB / 0.8584 GB, free: 8.793 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.006075/1.291, allocations: 1.424 MB / 0.8598 GB, free: 7.73 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.007418/1.299, allocations: 2.986 MB / 0.8627 GB, free: 5.961 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002663/1.301, allocations: 0.8962 MB / 0.8636 GB, free: 5.059 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004742/1.306, allocations: 1.145 MB / 0.8647 GB, free: 3.918 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002606/1.309, allocations: 0.8033 MB / 0.8655 GB, free: 3.121 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0007147/1.309, allocations: 96 kB / 0.8656 GB, free: 3.027 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007299/1.317, allocations: 2.062 MB / 0.8676 GB, free: 0.9609 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.001185/1.318, allocations: 363 kB / 0.8679 GB, free: 0.6055 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.002237/1.32, allocations: 0.5908 MB / 0.8685 GB, free: 12 kB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.008524/1.329, allocations: 2.415 MB / 0.8709 GB, free: 13.59 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 1.149e-05/1.329, allocations: 0 / 0.8709 GB, free: 13.59 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.565e-06/1.329, allocations: 0 / 0.8709 GB, free: 13.59 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 9.291e-05/1.329, allocations: 4 kB / 0.8709 GB, free: 13.58 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.00692/1.336, allocations: 1.633 MB / 0.8725 GB, free: 11.89 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 6.036e-05/1.336, allocations: 12.03 kB / 0.8725 GB, free: 11.88 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003416/1.336, allocations: 118.5 kB / 0.8726 GB, free: 11.75 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004795/1.341, allocations: 0.5331 MB / 0.8731 GB, free: 11.22 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003557/1.345, allocations: 1.043 MB / 0.8741 GB, free: 10.13 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001184/1.345, allocations: 53.31 kB / 0.8742 GB, free: 10.08 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003157/1.345, allocations: 67.94 kB / 0.8743 GB, free: 10.02 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004869/1.35, allocations: 1.112 MB / 0.8753 GB, free: 8.871 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.851e-05/1.35, allocations: 0 / 0.8753 GB, free: 8.871 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001528/1.35, allocations: 32 kB / 0.8754 GB, free: 8.84 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.02e-05/1.35, allocations: 37.3 kB / 0.8754 GB, free: 8.805 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004752/1.355, allocations: 1.16 MB / 0.8765 GB, free: 7.645 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01271/1.368, allocations: 3.162 MB / 0.8796 GB, free: 4.398 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003505/1.372, allocations: 0.688 MB / 0.8803 GB, free: 3.703 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001596/1.373, allocations: 422 kB / 0.8807 GB, free: 3.289 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001951/1.375, allocations: 1.017 MB / 0.8817 GB, free: 2.051 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00205/1.377, allocations: 0.5182 MB / 0.8822 GB, free: 1.508 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=57): time 7.353e-06/1.377, allocations: 0 / 0.8822 GB, free: 1.508 MB / 0.6387 GB Notification: Performance of matching and sorting (n=57): time 0.005587/1.383, allocations: 1.228 MB / 0.8834 GB, free: 272 kB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/1.383, allocations: 140.9 kB / 0.8835 GB, free: 100 kB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003584/1.387, allocations: 1.18 MB / 0.8847 GB, free: 14.9 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.000203/1.387, allocations: 37.7 kB / 0.8847 GB, free: 14.86 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004919/1.387, allocations: 437.5 kB / 0.8851 GB, free: 14.43 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001987/1.388, allocations: 189.2 kB / 0.8853 GB, free: 14.24 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002926/1.388, allocations: 142.1 kB / 0.8855 GB, free: 14.09 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001576/1.388, allocations: 330 kB / 0.8858 GB, free: 13.77 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001184/1.389, allocations: 440.9 kB / 0.8862 GB, free: 13.33 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001407/1.391, allocations: 0.5976 MB / 0.8868 GB, free: 12.69 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001987/1.393, allocations: 0.9262 MB / 0.8877 GB, free: 11.71 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.239e-06/1.393, allocations: 0 / 0.8877 GB, free: 11.71 MB / 0.6544 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003164/1.396, allocations: 1.193 MB / 0.8888 GB, free: 10.5 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 5.691e-05/1.396, allocations: 41.69 kB / 0.8889 GB, free: 10.45 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/1.396, allocations: 8.281 kB / 0.8889 GB, free: 10.45 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.517e-05/1.396, allocations: 7.938 kB / 0.8889 GB, free: 10.44 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009619/1.397, allocations: 187.7 kB / 0.8891 GB, free: 10.25 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.004e-05/1.397, allocations: 11.94 kB / 0.8891 GB, free: 10.24 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001573/1.399, allocations: 238.9 kB / 0.8893 GB, free: 10.01 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.01e-05/1.399, allocations: 35.97 kB / 0.8894 GB, free: 9.973 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.0006272/1.399, allocations: 328.2 kB / 0.8897 GB, free: 9.637 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002545/1.4, allocations: 118.6 kB / 0.8898 GB, free: 9.52 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002159/1.402, allocations: 0.9914 MB / 0.8908 GB, free: 8.523 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.796e-05/1.402, allocations: 15.94 kB / 0.8908 GB, free: 8.508 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/1.402, allocations: 0 / 0.8908 GB, free: 8.508 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.457e-06/1.402, allocations: 3.984 kB / 0.8908 GB, free: 8.504 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005297/1.407, allocations: 3.165 MB / 0.8939 GB, free: 5.184 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.765e-05/1.407, allocations: 8 kB / 0.8939 GB, free: 5.176 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006944/1.408, allocations: 120.3 kB / 0.894 GB, free: 5.059 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.238e-05/1.408, allocations: 12 kB / 0.894 GB, free: 5.047 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.683e-05/1.408, allocations: 27.92 kB / 0.894 GB, free: 5.02 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-05/1.408, allocations: 8 kB / 0.894 GB, free: 5.012 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.11e-05/1.408, allocations: 12.45 kB / 0.894 GB, free: 5 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003445/1.411, allocations: 1.341 MB / 0.8953 GB, free: 3.539 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009565/1.412, allocations: 327.4 kB / 0.8957 GB, free: 3.199 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004665/1.413, allocations: 27.98 kB / 0.8957 GB, free: 3.172 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002023/1.415, allocations: 99.91 kB / 0.8958 GB, free: 3.074 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/1.415, allocations: 67.69 kB / 0.8958 GB, free: 3.008 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001535/1.415, allocations: 39.97 kB / 0.8959 GB, free: 2.969 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.002865/1.418, allocations: 0.8482 MB / 0.8967 GB, free: 2.113 MB / 0.6544 GB Notification: Performance of sort global known variables: time 3.91e-07/1.418, allocations: 0 / 0.8967 GB, free: 2.113 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.002188/1.42, allocations: 303.8 kB / 0.897 GB, free: 1.816 MB / 0.6544 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.005862/1.426, allocations: 2.116 MB / 0.8991 GB, free: 15.59 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.004388/1.431, allocations: 1.013 MB / 0.9001 GB, free: 14.57 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-05/1.431, allocations: 0 / 0.9001 GB, free: 14.57 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001699/1.433, allocations: 0.5163 MB / 0.9006 GB, free: 14.04 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005397/1.438, allocations: 0.5538 MB / 0.9011 GB, free: 13.52 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03297/1.471, allocations: 9.378 MB / 0.9103 GB, free: 3.738 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00151/1.473, allocations: 1.073 MB / 0.9113 GB, free: 2.637 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001933/1.475, allocations: 267.9 kB / 0.9116 GB, free: 2.375 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008882/1.475, allocations: 363.3 kB / 0.9119 GB, free: 2.02 MB / 0.67 GB Notification: Performance of SimCode: time 1.573e-06/1.476, allocations: 4 kB / 0.9119 GB, free: 2.016 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1066/1.582, allocations: 32.22 MB / 0.9434 GB, free: 2.102 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.08/18.66, allocations: 13.67 kB / 0.9434 GB, free: 2.094 MB / 0.7012 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/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)