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.005512/0.005512, allocations: 100.2 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.001415/0.001415, allocations: 193.1 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.387/1.387, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8402/0.8402, allocations: 132.2 MB / 422.7 MB, free: 6.559 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 63.39 kB / 0.5809 GB, free: 24.31 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1278, allocations: 80.21 MB / 0.6592 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.4992/0.6271, allocations: 194 MB / 0.8486 GB, free: 0.8594 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01061/0.6377, allocations: 6.92 MB / 0.8554 GB, free: 11.22 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001004/0.6387, allocations: 47.19 kB / 0.8555 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.001629/0.6404, allocations: 0.6965 MB / 0.8561 GB, free: 10.6 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.005033/0.6455, allocations: 2.334 MB / 0.8584 GB, free: 8.816 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003147/0.6486, allocations: 1.42 MB / 0.8598 GB, free: 7.758 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.003509/0.6521, allocations: 2.989 MB / 0.8627 GB, free: 5.996 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001351/0.6535, allocations: 0.8916 MB / 0.8636 GB, free: 5.105 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002428/0.6559, allocations: 1.149 MB / 0.8647 GB, free: 3.965 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001333/0.6573, allocations: 0.7905 MB / 0.8655 GB, free: 3.176 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0001863/0.6575, allocations: 103.9 kB / 0.8656 GB, free: 3.074 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003952/0.6614, allocations: 2.046 MB / 0.8676 GB, free: 1.023 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0004217/0.6619, allocations: 370.9 kB / 0.8679 GB, free: 0.6602 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0006851/0.6626, allocations: 0.5869 MB / 0.8685 GB, free: 72 kB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.003672/0.6663, allocations: 2.436 MB / 0.8709 GB, free: 13.62 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.6663, allocations: 0 / 0.8709 GB, free: 13.62 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.362e-06/0.6663, allocations: 0 / 0.8709 GB, free: 13.62 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.544e-05/0.6663, allocations: 4 kB / 0.8709 GB, free: 13.62 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.003449/0.6698, allocations: 1.677 MB / 0.8725 GB, free: 11.88 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.6698, allocations: 11.97 kB / 0.8725 GB, free: 11.87 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001467/0.67, allocations: 110.5 kB / 0.8726 GB, free: 11.75 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003021/0.673, allocations: 0.5416 MB / 0.8732 GB, free: 11.21 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002287/0.6753, allocations: 1.042 MB / 0.8742 GB, free: 10.12 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.549e-05/0.6754, allocations: 57.3 kB / 0.8742 GB, free: 10.07 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.6755, allocations: 68 kB / 0.8743 GB, free: 10 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002568/0.6781, allocations: 1.116 MB / 0.8754 GB, free: 8.855 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.6781, allocations: 0 / 0.8754 GB, free: 8.855 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.099e-05/0.6782, allocations: 27.98 kB / 0.8754 GB, free: 8.828 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.381e-05/0.6783, allocations: 33.31 kB / 0.8755 GB, free: 8.797 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003219/0.6815, allocations: 1.164 MB / 0.8766 GB, free: 7.633 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006279/0.6878, allocations: 3.163 MB / 0.8797 GB, free: 4.387 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001785/0.6896, allocations: 0.6841 MB / 0.8804 GB, free: 3.695 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008564/0.6905, allocations: 433.5 kB / 0.8808 GB, free: 3.273 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001033/0.6915, allocations: 1.025 MB / 0.8818 GB, free: 2.027 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001108/0.6926, allocations: 0.5104 MB / 0.8823 GB, free: 1.492 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=57): time 4.479e-06/0.6926, allocations: 0 / 0.8823 GB, free: 1.492 MB / 0.6387 GB Notification: Performance of matching and sorting (n=57): time 0.003134/0.6958, allocations: 1.237 MB / 0.8835 GB, free: 248 kB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.814e-05/0.6959, allocations: 140.9 kB / 0.8836 GB, free: 76 kB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001953/0.6978, allocations: 1.18 MB / 0.8848 GB, free: 14.88 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 6.531e-05/0.6979, allocations: 33.7 kB / 0.8848 GB, free: 14.84 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004004/0.6983, allocations: 441.8 kB / 0.8852 GB, free: 14.41 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001776/0.6985, allocations: 198.3 kB / 0.8854 GB, free: 14.21 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002902/0.6988, allocations: 142.1 kB / 0.8855 GB, free: 14.06 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.699, allocations: 330 kB / 0.8859 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001328/0.7003, allocations: 440.9 kB / 0.8863 GB, free: 13.3 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001502/0.7018, allocations: 0.5994 MB / 0.8869 GB, free: 12.66 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002213/0.704, allocations: 0.9305 MB / 0.8878 GB, free: 11.67 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.704, allocations: 0 / 0.8878 GB, free: 11.67 MB / 0.6544 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003198/0.7072, allocations: 1.206 MB / 0.8889 GB, free: 10.45 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 6.132e-05/0.7073, allocations: 47.47 kB / 0.889 GB, free: 10.4 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.7073, allocations: 0 / 0.889 GB, free: 10.4 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.7074, allocations: 11.94 kB / 0.889 GB, free: 10.39 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009549/0.7083, allocations: 187.7 kB / 0.8892 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.7083, allocations: 5.797 kB / 0.8892 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/0.7098, allocations: 251.1 kB / 0.8894 GB, free: 9.957 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.615e-05/0.7099, allocations: 31.98 kB / 0.8895 GB, free: 9.926 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.0004607/0.7103, allocations: 332.2 kB / 0.8898 GB, free: 9.586 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001973/0.7106, allocations: 127.2 kB / 0.8899 GB, free: 9.461 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002252/0.7128, allocations: 0.9975 MB / 0.8909 GB, free: 8.457 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.7128, allocations: 4 kB / 0.8909 GB, free: 8.453 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.7129, allocations: 4 kB / 0.8909 GB, free: 8.449 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.7129, allocations: 3.984 kB / 0.8909 GB, free: 8.445 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005007/0.7179, allocations: 3.15 MB / 0.894 GB, free: 5.141 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.836e-06/0.7179, allocations: 8.094 kB / 0.894 GB, free: 5.133 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005956/0.7185, allocations: 123.8 kB / 0.8941 GB, free: 5.012 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.349e-05/0.7185, allocations: 11.98 kB / 0.8941 GB, free: 5 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.561e-05/0.7186, allocations: 24 kB / 0.8941 GB, free: 4.977 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.808e-05/0.7186, allocations: 19.92 kB / 0.8941 GB, free: 4.957 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/0.7186, allocations: 8 kB / 0.8941 GB, free: 4.949 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002279/0.7209, allocations: 1.346 MB / 0.8955 GB, free: 3.484 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004742/0.7214, allocations: 344 kB / 0.8958 GB, free: 3.129 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001534/0.7216, allocations: 24 kB / 0.8958 GB, free: 3.105 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001102/0.7227, allocations: 95.89 kB / 0.8959 GB, free: 3.012 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.7228, allocations: 63.7 kB / 0.896 GB, free: 2.949 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.571e-05/0.7229, allocations: 43.97 kB / 0.896 GB, free: 2.906 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001528/0.7244, allocations: 0.8482 MB / 0.8968 GB, free: 2.051 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.71e-07/0.7244, allocations: 0 / 0.8968 GB, free: 2.051 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.00101/0.7254, allocations: 299.6 kB / 0.8971 GB, free: 1.758 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.003239/0.7287, allocations: 2.142 MB / 0.8992 GB, free: 15.51 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002494/0.7312, allocations: 1.013 MB / 0.9002 GB, free: 14.48 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 7.223e-06/0.7312, allocations: 4 kB / 0.9002 GB, free: 14.48 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001011/0.7322, allocations: 0.5124 MB / 0.9007 GB, free: 13.96 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002758/0.735, allocations: 0.5516 MB / 0.9012 GB, free: 13.44 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01714/0.7522, allocations: 9.415 MB / 0.9104 GB, free: 3.621 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007358/0.7529, allocations: 1.061 MB / 0.9115 GB, free: 2.531 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001047/0.754, allocations: 279.4 kB / 0.9117 GB, free: 2.258 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005587/0.7546, allocations: 363.3 kB / 0.9121 GB, free: 1.902 MB / 0.67 GB Notification: Performance of SimCode: time 8.01e-07/0.7546, allocations: 3.938 kB / 0.9121 GB, free: 1.898 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4961/1.251, allocations: 31.75 MB / 0.9431 GB, free: 2.449 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/11.65, allocations: 13.06 kB / 0.9431 GB, free: 2.445 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)