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: translateModel(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 111.6 kB / 16.41 MB, free: 6.488 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.001087/0.001087, allocations: 187 kB / 17.34 MB, free: 5.762 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.353/1.353, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7828/0.7828, allocations: 132.2 MB / 423.4 MB, free: 6.551 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 63.92 kB / 0.582 GB, free: 23.8 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1857/0.1869, allocations: 80.21 MB / 0.6603 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.6233/0.8103, allocations: 194 MB / 0.8498 GB, free: 500 kB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01152/0.8219, allocations: 6.923 MB / 0.8565 GB, free: 10.84 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002042/0.824, allocations: 47.25 kB / 0.8566 GB, free: 10.82 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002751/0.8268, allocations: 0.6901 MB / 0.8573 GB, free: 10.23 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.007145/0.834, allocations: 2.33 MB / 0.8595 GB, free: 8.449 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003938/0.8379, allocations: 1.425 MB / 0.8609 GB, free: 7.391 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.005045/0.843, allocations: 2.986 MB / 0.8638 GB, free: 5.637 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001904/0.8449, allocations: 0.9014 MB / 0.8647 GB, free: 4.777 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003499/0.8485, allocations: 1.153 MB / 0.8659 GB, free: 3.625 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001947/0.8504, allocations: 0.7908 MB / 0.8666 GB, free: 2.84 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0004424/0.8509, allocations: 100 kB / 0.8667 GB, free: 2.742 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004604/0.8555, allocations: 2.062 MB / 0.8687 GB, free: 0.6758 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0006954/0.8562, allocations: 362.9 kB / 0.8691 GB, free: 328 kB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001394/0.8576, allocations: 0.5947 MB / 0.8697 GB, free: 15.72 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.005206/0.8628, allocations: 2.419 MB / 0.872 GB, free: 13.29 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.8629, allocations: 0 / 0.872 GB, free: 13.29 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.734e-06/0.8629, allocations: 0 / 0.872 GB, free: 13.29 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 6.729e-05/0.863, allocations: 0 / 0.872 GB, free: 13.29 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.0045/0.8675, allocations: 1.633 MB / 0.8736 GB, free: 11.6 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.8675, allocations: 8.031 kB / 0.8736 GB, free: 11.59 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003179/0.8707, allocations: 0.5409 MB / 0.8742 GB, free: 11.05 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002689/0.8734, allocations: 1.042 MB / 0.8752 GB, free: 9.969 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.719e-05/0.8735, allocations: 61.25 kB / 0.8752 GB, free: 9.91 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002056/0.8737, allocations: 68 kB / 0.8753 GB, free: 9.844 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00272/0.8765, allocations: 1.101 MB / 0.8764 GB, free: 8.711 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.547e-05/0.8765, allocations: 7.938 kB / 0.8764 GB, free: 8.703 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001115/0.8766, allocations: 24 kB / 0.8764 GB, free: 8.68 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.44e-05/0.8767, allocations: 37.23 kB / 0.8764 GB, free: 8.645 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00315/0.8798, allocations: 1.161 MB / 0.8776 GB, free: 7.484 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006407/0.8863, allocations: 3.159 MB / 0.8807 GB, free: 4.242 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001799/0.8881, allocations: 0.6841 MB / 0.8813 GB, free: 3.551 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008075/0.8889, allocations: 426 kB / 0.8817 GB, free: 3.133 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008981/0.8898, allocations: 1.025 MB / 0.8827 GB, free: 1.887 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001054/0.8909, allocations: 0.5181 MB / 0.8832 GB, free: 1.344 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=57): time 3.357e-06/0.8909, allocations: 0 / 0.8832 GB, free: 1.344 MB / 0.6387 GB Notification: Performance of matching and sorting (n=57): time 0.003137/0.8941, allocations: 1.225 MB / 0.8844 GB, free: 108 kB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/0.8942, allocations: 136.9 kB / 0.8846 GB, free: 15.94 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002319/0.8965, allocations: 1.18 MB / 0.8857 GB, free: 14.75 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.000119/0.8967, allocations: 37.7 kB / 0.8858 GB, free: 14.7 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004206/0.8971, allocations: 441.5 kB / 0.8862 GB, free: 14.27 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002016/0.8973, allocations: 201.2 kB / 0.8864 GB, free: 14.07 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002972/0.8976, allocations: 138.1 kB / 0.8865 GB, free: 13.93 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.8978, allocations: 330 kB / 0.8868 GB, free: 13.6 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001216/0.899, allocations: 440.9 kB / 0.8872 GB, free: 13.16 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001407/0.9004, allocations: 0.5938 MB / 0.8878 GB, free: 12.52 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00206/0.9025, allocations: 0.9223 MB / 0.8887 GB, free: 11.55 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.171e-06/0.9025, allocations: 0 / 0.8887 GB, free: 11.55 MB / 0.6544 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003248/0.9057, allocations: 1.205 MB / 0.8899 GB, free: 10.33 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 5.48e-05/0.9058, allocations: 37.69 kB / 0.8899 GB, free: 10.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.9058, allocations: 4 kB / 0.8899 GB, free: 10.28 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.067e-05/0.9059, allocations: 11.94 kB / 0.8899 GB, free: 10.27 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009345/0.9068, allocations: 192 kB / 0.8901 GB, free: 10.08 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.722e-05/0.9068, allocations: 4 kB / 0.8901 GB, free: 10.08 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/0.9085, allocations: 242.9 kB / 0.8904 GB, free: 9.84 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/0.9086, allocations: 35.97 kB / 0.8904 GB, free: 9.805 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.0006026/0.9092, allocations: 332.1 kB / 0.8907 GB, free: 9.465 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003201/0.9095, allocations: 118.6 kB / 0.8908 GB, free: 9.348 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002218/0.9117, allocations: 0.9957 MB / 0.8918 GB, free: 8.348 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.831e-05/0.9118, allocations: 7.984 kB / 0.8918 GB, free: 8.34 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-05/0.9118, allocations: 4 kB / 0.8918 GB, free: 8.336 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/0.9118, allocations: 4 kB / 0.8918 GB, free: 8.332 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005178/0.917, allocations: 3.154 MB / 0.8949 GB, free: 5.023 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.951e-05/0.917, allocations: 8 kB / 0.8949 GB, free: 5.016 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005975/0.9176, allocations: 127.9 kB / 0.895 GB, free: 4.891 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.612e-05/0.9177, allocations: 8 kB / 0.895 GB, free: 4.883 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.029e-05/0.9177, allocations: 27.98 kB / 0.8951 GB, free: 4.855 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.437e-05/0.9178, allocations: 12.64 kB / 0.8951 GB, free: 4.844 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.988e-06/0.9178, allocations: 11.94 kB / 0.8951 GB, free: 4.832 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002282/0.9201, allocations: 1.345 MB / 0.8964 GB, free: 3.367 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006037/0.9207, allocations: 319.4 kB / 0.8967 GB, free: 3.035 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002764/0.921, allocations: 27.98 kB / 0.8967 GB, free: 3.008 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001194/0.9222, allocations: 99.91 kB / 0.8968 GB, free: 2.91 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.9223, allocations: 59.77 kB / 0.8969 GB, free: 2.852 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.983e-05/0.9224, allocations: 47.95 kB / 0.8969 GB, free: 2.805 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001624/0.924, allocations: 0.8443 MB / 0.8977 GB, free: 1.953 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.7e-07/0.924, allocations: 0 / 0.8977 GB, free: 1.953 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001151/0.9252, allocations: 303.8 kB / 0.898 GB, free: 1.656 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.0008231/0.926, allocations: 343.6 kB / 0.8984 GB, free: 1.328 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002442/0.9285, allocations: 1.013 MB / 0.8994 GB, free: 308 kB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/0.9285, allocations: 4 kB / 0.8994 GB, free: 304 kB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0009491/0.9295, allocations: 0.5048 MB / 0.8998 GB, free: 15.78 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003021/0.9325, allocations: 0.5495 MB / 0.9004 GB, free: 15.26 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004007/0.9365, allocations: 2.073 MB / 0.9024 GB, free: 13.05 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007329/0.9373, allocations: 1.069 MB / 0.9035 GB, free: 11.95 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003905/0.9377, allocations: 95.41 kB / 0.9035 GB, free: 11.86 MB / 0.67 GB Notification: Performance of SimCode: time 7.72e-07/0.9377, allocations: 0 / 0.9035 GB, free: 11.86 MB / 0.67 GB Notification: Performance of Templates: time 0.02941/0.9671, allocations: 18.81 MB / 0.9219 GB, free: 9.168 MB / 0.6856 GB make -j1 -f IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (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 & ./IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)