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.004327/0.004327, allocations: 95.42 kB / 15.73 MB, free: 6.039 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.001237/0.001237, allocations: 205.2 kB / 16.68 MB, free: 5.969 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9594/0.9594, allocations: 135.6 MB / 426.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 71.89 kB / 0.5858 GB, free: 3.223 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3333, allocations: 81.02 MB / 0.6649 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2114/0.5447, allocations: 194 MB / 0.8543 GB, free: 14.24 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.01068/0.5554, allocations: 6.925 MB / 0.8611 GB, free: 7.301 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000733/0.5562, allocations: 47.69 kB / 0.8611 GB, free: 7.254 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.001513/0.5577, allocations: 0.6831 MB / 0.8618 GB, free: 6.566 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.004794/0.5625, allocations: 2.334 MB / 0.8641 GB, free: 4.223 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.003051/0.5656, allocations: 1.433 MB / 0.8655 GB, free: 2.812 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.3289/0.8945, allocations: 2.974 MB / 0.8684 GB, free: 4.516 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001544/0.896, allocations: 0.8969 MB / 0.8693 GB, free: 4.441 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002425/0.8985, allocations: 1.137 MB / 0.8704 GB, free: 4.441 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001169/0.8997, allocations: 0.7954 MB / 0.8712 GB, free: 4.438 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0001864/0.8999, allocations: 100.6 kB / 0.8712 GB, free: 4.438 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003524/0.9034, allocations: 2.059 MB / 0.8733 GB, free: 4.438 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.000332/0.9037, allocations: 368 kB / 0.8736 GB, free: 4.438 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.000588/0.9043, allocations: 0.5842 MB / 0.8742 GB, free: 4.438 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.002956/0.9073, allocations: 2.432 MB / 0.8766 GB, free: 4.309 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.9073, allocations: 0 / 0.8766 GB, free: 4.309 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.473e-06/0.9073, allocations: 0.8438 kB / 0.8766 GB, free: 4.309 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 1.411e-05/0.9073, allocations: 2.062 kB / 0.8766 GB, free: 4.309 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.003295/0.9106, allocations: 1.674 MB / 0.8782 GB, free: 19.41 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.9107, allocations: 10.44 kB / 0.8782 GB, free: 19.41 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001471/0.9108, allocations: 112.6 kB / 0.8783 GB, free: 19.37 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003113/0.914, allocations: 0.54 MB / 0.8788 GB, free: 19.3 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002109/0.9161, allocations: 1.046 MB / 0.8799 GB, free: 18.96 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.666e-05/0.9162, allocations: 56.05 kB / 0.8799 GB, free: 18.96 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001382/0.9163, allocations: 70.06 kB / 0.88 GB, free: 18.96 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00234/0.9187, allocations: 1.111 MB / 0.8811 GB, free: 18.84 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.9187, allocations: 1.406 kB / 0.8811 GB, free: 18.84 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.644e-05/0.9188, allocations: 30.41 kB / 0.8811 GB, free: 18.84 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.102e-05/0.9188, allocations: 34.56 kB / 0.8811 GB, free: 18.84 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003055/0.9219, allocations: 1.162 MB / 0.8823 GB, free: 18.83 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005095/0.927, allocations: 3.18 MB / 0.8854 GB, free: 17.89 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001664/0.9287, allocations: 0.6892 MB / 0.886 GB, free: 17.86 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007948/0.9295, allocations: 422.6 kB / 0.8864 GB, free: 17.86 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009755/0.9305, allocations: 1.02 MB / 0.8874 GB, free: 16.73 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009805/0.9315, allocations: 0.5143 MB / 0.8879 GB, free: 16.63 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=57): time 3.106e-06/0.9315, allocations: 4.891 kB / 0.8879 GB, free: 16.62 MB / 0.7012 GB Notification: Performance of matching and sorting (n=57): time 0.00294/0.9344, allocations: 1.226 MB / 0.8891 GB, free: 16.49 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.9345, allocations: 139.3 kB / 0.8893 GB, free: 16.34 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00179/0.9363, allocations: 1.179 MB / 0.8904 GB, free: 16.19 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 7.428e-05/0.9364, allocations: 37.92 kB / 0.8905 GB, free: 16.16 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003047/0.9367, allocations: 449.5 kB / 0.8909 GB, free: 16.02 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.9369, allocations: 192.2 kB / 0.8911 GB, free: 15.9 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000276/0.9371, allocations: 149.5 kB / 0.8912 GB, free: 15.87 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.9373, allocations: 336.6 kB / 0.8915 GB, free: 15.56 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.9386, allocations: 439.4 kB / 0.892 GB, free: 15.56 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001396/0.94, allocations: 0.5917 MB / 0.8925 GB, free: 15.44 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002008/0.942, allocations: 0.9262 MB / 0.8934 GB, free: 15.25 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.942, allocations: 1.562 kB / 0.8934 GB, free: 15.25 MB / 0.7012 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003048/0.945, allocations: 1.202 MB / 0.8946 GB, free: 15.12 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 4.752e-05/0.9451, allocations: 37.23 kB / 0.8947 GB, free: 15.09 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.9451, allocations: 3.875 kB / 0.8947 GB, free: 15.09 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.9452, allocations: 7.109 kB / 0.8947 GB, free: 15.09 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009567/0.9461, allocations: 190.2 kB / 0.8948 GB, free: 15.09 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.9461, allocations: 9.125 kB / 0.8949 GB, free: 15.09 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001461/0.9476, allocations: 245 kB / 0.8951 GB, free: 15.04 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.189e-05/0.9477, allocations: 41.28 kB / 0.8951 GB, free: 15.04 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.0004334/0.9481, allocations: 323.2 kB / 0.8954 GB, free: 14.89 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001893/0.9483, allocations: 125.3 kB / 0.8956 GB, free: 14.83 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001989/0.9503, allocations: 0.9958 MB / 0.8965 GB, free: 14.73 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.9504, allocations: 8.75 kB / 0.8965 GB, free: 14.73 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.9504, allocations: 3.438 kB / 0.8965 GB, free: 14.73 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.9504, allocations: 2.906 kB / 0.8965 GB, free: 14.73 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004006/0.9544, allocations: 3.163 MB / 0.8996 GB, free: 13.96 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.9544, allocations: 10.78 kB / 0.8996 GB, free: 13.96 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005593/0.955, allocations: 119.9 kB / 0.8998 GB, free: 13.96 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.345e-06/0.955, allocations: 11.19 kB / 0.8998 GB, free: 13.96 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.424e-05/0.9551, allocations: 29.06 kB / 0.8998 GB, free: 13.96 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.116e-06/0.9551, allocations: 14.19 kB / 0.8998 GB, free: 13.96 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.9551, allocations: 8.438 kB / 0.8998 GB, free: 13.96 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001864/0.957, allocations: 1.353 MB / 0.9011 GB, free: 13.4 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004018/0.9574, allocations: 345.7 kB / 0.9015 GB, free: 13.23 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001639/0.9575, allocations: 23.27 kB / 0.9015 GB, free: 13.23 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/0.9586, allocations: 100.9 kB / 0.9016 GB, free: 13.23 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.738e-05/0.9587, allocations: 62.97 kB / 0.9016 GB, free: 13.22 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.286e-05/0.9588, allocations: 38.22 kB / 0.9017 GB, free: 13.22 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.001258/0.9601, allocations: 0.847 MB / 0.9025 GB, free: 13.11 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9601, allocations: 0 / 0.9025 GB, free: 13.11 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.0009599/0.9611, allocations: 302.2 kB / 0.9028 GB, free: 13.09 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.002685/0.9638, allocations: 2.12 MB / 0.9049 GB, free: 11.96 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.002131/0.9659, allocations: 1.016 MB / 0.9059 GB, free: 11.88 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.9659, allocations: 4.125 kB / 0.9059 GB, free: 11.88 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.0008217/0.9667, allocations: 0.5103 MB / 0.9064 GB, free: 11.81 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00254/0.9693, allocations: 0.5569 MB / 0.9069 GB, free: 11.71 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01404/0.9833, allocations: 9.415 MB / 0.9161 GB, free: 8.863 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006408/0.984, allocations: 1.07 MB / 0.9171 GB, free: 8.148 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.000877/0.9849, allocations: 271.9 kB / 0.9174 GB, free: 8.09 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004458/0.9853, allocations: 360 kB / 0.9177 GB, free: 8.082 MB / 0.7012 GB Notification: Performance of SimCode: time 8.21e-07/0.9854, allocations: 0 / 0.9177 GB, free: 8.082 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6799/1.665, allocations: 31.76 MB / 0.9488 GB, free: 8.43 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/12.31, allocations: 6.906 kB / 0.9488 GB, free: 8.426 MB / 0.7169 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)