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: translateModel(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.006636/0.006636, allocations: 100.1 kB / 15.73 MB, free: 6.047 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.001326/0.001326, allocations: 197.8 kB / 16.67 MB, free: 5.977 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.349/1.349, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9149/0.9149, allocations: 135.1 MB / 425.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 63.89 kB / 0.5856 GB, free: 3.328 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3875/0.3887, allocations: 80.92 MB / 0.6647 GB, free: 7.578 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.209/0.5977, allocations: 194 MB / 0.8541 GB, free: 14.95 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.01158/0.6093, allocations: 6.94 MB / 0.8609 GB, free: 7.996 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001738/0.6111, allocations: 47.69 kB / 0.8609 GB, free: 7.949 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.002062/0.6132, allocations: 0.7065 MB / 0.8616 GB, free: 7.238 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.00673/0.62, allocations: 2.431 MB / 0.864 GB, free: 4.797 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.003352/0.6233, allocations: 1.436 MB / 0.8654 GB, free: 3.379 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.003921/0.6273, allocations: 2.994 MB / 0.8683 GB, free: 384 kB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.4111/1.038, allocations: 0.8816 MB / 0.8692 GB, free: 4.57 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00294/1.041, allocations: 1.157 MB / 0.8703 GB, free: 4.57 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001492/1.043, allocations: 0.7931 MB / 0.8711 GB, free: 4.57 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0002466/1.043, allocations: 99.22 kB / 0.8712 GB, free: 4.57 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00457/1.048, allocations: 2.073 MB / 0.8732 GB, free: 4.57 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0006537/1.048, allocations: 368.8 kB / 0.8735 GB, free: 4.57 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.00104/1.049, allocations: 0.5853 MB / 0.8741 GB, free: 4.57 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.005275/1.055, allocations: 2.422 MB / 0.8765 GB, free: 4.527 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/1.055, allocations: 0.6875 kB / 0.8765 GB, free: 4.527 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.944e-06/1.055, allocations: 0 / 0.8765 GB, free: 4.527 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 3.655e-05/1.055, allocations: 1.5 kB / 0.8765 GB, free: 4.527 MB / 0.6856 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.004517/1.059, allocations: 1.634 MB / 0.8781 GB, free: 19.69 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/1.059, allocations: 9.219 kB / 0.8781 GB, free: 19.69 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00309/1.062, allocations: 0.536 MB / 0.8786 GB, free: 19.62 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002608/1.065, allocations: 1.036 MB / 0.8796 GB, free: 19.29 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.213e-05/1.065, allocations: 54.22 kB / 0.8797 GB, free: 19.29 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000169/1.065, allocations: 68.09 kB / 0.8797 GB, free: 19.29 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002764/1.068, allocations: 1.11 MB / 0.8808 GB, free: 19.18 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.862e-05/1.068, allocations: 3.656 kB / 0.8808 GB, free: 19.18 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.279e-05/1.068, allocations: 25.62 kB / 0.8809 GB, free: 19.18 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.744e-05/1.068, allocations: 33.7 kB / 0.8809 GB, free: 19.18 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002921/1.071, allocations: 1.167 MB / 0.882 GB, free: 19.17 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005565/1.077, allocations: 3.155 MB / 0.8851 GB, free: 18.25 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001582/1.078, allocations: 0.6904 MB / 0.8858 GB, free: 18.22 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007618/1.079, allocations: 427.7 kB / 0.8862 GB, free: 18.21 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008453/1.08, allocations: 1.018 MB / 0.8872 GB, free: 17.09 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009532/1.081, allocations: 0.5125 MB / 0.8877 GB, free: 16.99 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=57): time 2.986e-06/1.081, allocations: 2.031 kB / 0.8877 GB, free: 16.99 MB / 0.7012 GB Notification: Performance of matching and sorting (n=57): time 0.003026/1.084, allocations: 1.219 MB / 0.8889 GB, free: 16.86 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.68e-05/1.084, allocations: 141.1 kB / 0.889 GB, free: 16.7 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00204/1.086, allocations: 1.178 MB / 0.8902 GB, free: 16.55 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001029/1.086, allocations: 42.55 kB / 0.8902 GB, free: 16.52 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003327/1.087, allocations: 435.7 kB / 0.8906 GB, free: 16.39 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001476/1.087, allocations: 189.3 kB / 0.8908 GB, free: 16.27 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002978/1.087, allocations: 150.8 kB / 0.8909 GB, free: 16.25 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001269/1.087, allocations: 333.8 kB / 0.8913 GB, free: 15.94 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001151/1.088, allocations: 436.3 kB / 0.8917 GB, free: 15.94 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001267/1.09, allocations: 0.5985 MB / 0.8923 GB, free: 15.81 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001865/1.092, allocations: 0.9286 MB / 0.8932 GB, free: 15.63 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/1.092, allocations: 1 kB / 0.8932 GB, free: 15.63 MB / 0.7012 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002838/1.094, allocations: 1.198 MB / 0.8943 GB, free: 15.5 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 5.745e-05/1.094, allocations: 37.52 kB / 0.8944 GB, free: 15.47 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/1.095, allocations: 3.594 kB / 0.8944 GB, free: 15.47 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.271e-05/1.095, allocations: 6.125 kB / 0.8944 GB, free: 15.47 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008967/1.095, allocations: 188.6 kB / 0.8946 GB, free: 15.47 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/1.095, allocations: 11.06 kB / 0.8946 GB, free: 15.47 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/1.097, allocations: 243 kB / 0.8948 GB, free: 15.43 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.236e-05/1.097, allocations: 38.8 kB / 0.8948 GB, free: 15.43 MB / 0.7012 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.000461/1.097, allocations: 325.6 kB / 0.8951 GB, free: 15.28 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001932/1.098, allocations: 119.9 kB / 0.8953 GB, free: 15.22 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001991/1.1, allocations: 0.9963 MB / 0.8962 GB, free: 15.11 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/1.1, allocations: 7.75 kB / 0.8962 GB, free: 15.11 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/1.1, allocations: 4.688 kB / 0.8962 GB, free: 15.11 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/1.1, allocations: 2.906 kB / 0.8963 GB, free: 15.11 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004008/1.104, allocations: 3.167 MB / 0.8993 GB, free: 14.35 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/1.104, allocations: 10.14 kB / 0.8994 GB, free: 14.35 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005446/1.104, allocations: 124.7 kB / 0.8995 GB, free: 14.35 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.578e-06/1.104, allocations: 15.53 kB / 0.8995 GB, free: 14.35 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.308e-05/1.104, allocations: 23 kB / 0.8995 GB, free: 14.35 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.856e-06/1.104, allocations: 14.5 kB / 0.8995 GB, free: 14.35 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/1.104, allocations: 13.59 kB / 0.8995 GB, free: 14.35 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001789/1.106, allocations: 1.339 MB / 0.9008 GB, free: 13.8 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004722/1.107, allocations: 328.4 kB / 0.9012 GB, free: 13.64 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001493/1.107, allocations: 24.56 kB / 0.9012 GB, free: 13.64 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001022/1.108, allocations: 101.8 kB / 0.9013 GB, free: 13.64 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.597e-05/1.108, allocations: 59.67 kB / 0.9013 GB, free: 13.63 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.167e-05/1.108, allocations: 41.38 kB / 0.9014 GB, free: 13.63 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001187/1.109, allocations: 0.8505 MB / 0.9022 GB, free: 13.52 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.4e-07/1.109, allocations: 0 / 0.9022 GB, free: 13.52 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.0011/1.11, allocations: 295.5 kB / 0.9025 GB, free: 13.5 MB / 0.7012 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.0007052/1.111, allocations: 338.2 kB / 0.9028 GB, free: 13.39 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.002267/1.113, allocations: 1.025 MB / 0.9038 GB, free: 13.32 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/1.113, allocations: 0 / 0.9038 GB, free: 13.32 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.0008294/1.114, allocations: 0.5145 MB / 0.9043 GB, free: 13.25 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002271/1.117, allocations: 0.5435 MB / 0.9048 GB, free: 13.16 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002927/1.119, allocations: 2.036 MB / 0.9068 GB, free: 12.28 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005556/1.12, allocations: 1.071 MB / 0.9079 GB, free: 11.57 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.000841/1.121, allocations: 278 kB / 0.9081 GB, free: 11.5 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002312/1.121, allocations: 80.89 kB / 0.9082 GB, free: 11.5 MB / 0.7012 GB Notification: Performance of SimCode: time 9.01e-07/1.121, allocations: 0 / 0.9082 GB, free: 11.5 MB / 0.7012 GB Notification: Performance of Templates: time 0.03206/1.153, allocations: 22.18 MB / 0.9299 GB, free: 6.094 MB / 0.7012 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (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 & ./IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)