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.006933/0.006932, allocations: 103.2 kB / 15.73 MB, free: 5.957 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.001592/0.001592, allocations: 187.4 kB / 16.67 MB, free: 5.887 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.324/1.324, 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.7649/0.7649, allocations: 132.2 MB / 422.7 MB, free: 6.559 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 59.5 kB / 0.5809 GB, free: 24.14 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1653/0.1665, allocations: 80.21 MB / 0.6592 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.6094/0.776, allocations: 194 MB / 0.8486 GB, free: 0.8398 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01451/0.7905, allocations: 6.936 MB / 0.8554 GB, free: 11.18 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002156/0.7927, allocations: 44.53 kB / 0.8555 GB, free: 11.16 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002476/0.7953, allocations: 0.7031 MB / 0.8561 GB, free: 10.57 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.007858/0.8031, allocations: 2.432 MB / 0.8585 GB, free: 8.73 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003945/0.8071, allocations: 1.424 MB / 0.8599 GB, free: 7.668 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.004673/0.8118, allocations: 3.005 MB / 0.8628 GB, free: 5.816 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001763/0.8136, allocations: 0.883 MB / 0.8637 GB, free: 4.93 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003148/0.8168, allocations: 1.167 MB / 0.8649 GB, free: 3.77 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001746/0.8185, allocations: 0.7834 MB / 0.8656 GB, free: 2.988 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0003504/0.8189, allocations: 103.9 kB / 0.8657 GB, free: 2.887 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004398/0.8233, allocations: 2.066 MB / 0.8677 GB, free: 0.8164 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0006026/0.8239, allocations: 362.9 kB / 0.8681 GB, free: 472 kB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001157/0.8251, allocations: 0.5986 MB / 0.8687 GB, free: 15.85 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.005122/0.8302, allocations: 2.415 MB / 0.871 GB, free: 13.43 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.8302, allocations: 0 / 0.871 GB, free: 13.43 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.553e-06/0.8303, allocations: 0 / 0.871 GB, free: 13.43 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 5.59e-05/0.8303, allocations: 4 kB / 0.871 GB, free: 13.43 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.004349/0.8347, allocations: 1.633 MB / 0.8726 GB, free: 11.74 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.8347, allocations: 12.03 kB / 0.8726 GB, free: 11.73 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002265/0.835, allocations: 110.5 kB / 0.8727 GB, free: 11.61 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002873/0.8378, allocations: 0.537 MB / 0.8733 GB, free: 11.07 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002457/0.8403, allocations: 1.035 MB / 0.8743 GB, free: 9.992 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.659e-05/0.8404, allocations: 61.25 kB / 0.8743 GB, free: 9.934 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001621/0.8406, allocations: 67.98 kB / 0.8744 GB, free: 9.867 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002513/0.8431, allocations: 1.116 MB / 0.8755 GB, free: 8.719 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.8431, allocations: 0 / 0.8755 GB, free: 8.719 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.549e-05/0.8432, allocations: 28 kB / 0.8755 GB, free: 8.691 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-05/0.8433, allocations: 29.31 kB / 0.8755 GB, free: 8.664 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003085/0.8464, allocations: 1.168 MB / 0.8767 GB, free: 7.496 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00641/0.8528, allocations: 3.166 MB / 0.8798 GB, free: 4.246 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.8545, allocations: 0.6879 MB / 0.8804 GB, free: 3.551 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008053/0.8553, allocations: 422.1 kB / 0.8808 GB, free: 3.137 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009743/0.8563, allocations: 1.021 MB / 0.8818 GB, free: 1.895 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001002/0.8573, allocations: 0.5182 MB / 0.8824 GB, free: 1.352 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=57): time 3.236e-06/0.8574, allocations: 0 / 0.8824 GB, free: 1.352 MB / 0.6387 GB Notification: Performance of matching and sorting (n=57): time 0.002991/0.8604, allocations: 1.225 MB / 0.8835 GB, free: 116 kB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/0.8605, allocations: 140.9 kB / 0.8837 GB, free: 15.95 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002055/0.8626, allocations: 1.18 MB / 0.8848 GB, free: 14.75 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 9.253e-05/0.8627, allocations: 37.7 kB / 0.8849 GB, free: 14.71 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003849/0.8631, allocations: 433.5 kB / 0.8853 GB, free: 14.28 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.000184/0.8632, allocations: 189.2 kB / 0.8855 GB, free: 14.09 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000305/0.8636, allocations: 146.1 kB / 0.8856 GB, free: 13.94 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.8637, allocations: 334 kB / 0.8859 GB, free: 13.61 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/0.8648, allocations: 432.9 kB / 0.8863 GB, free: 13.18 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001334/0.8662, allocations: 0.5976 MB / 0.8869 GB, free: 12.54 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001905/0.8681, allocations: 0.9344 MB / 0.8878 GB, free: 11.55 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-06/0.8681, allocations: 0 / 0.8878 GB, free: 11.55 MB / 0.6544 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003017/0.8711, allocations: 1.197 MB / 0.889 GB, free: 10.34 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 5.341e-05/0.8712, allocations: 37.69 kB / 0.889 GB, free: 10.3 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.8712, allocations: 4 kB / 0.889 GB, free: 10.29 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.403e-05/0.8713, allocations: 7.938 kB / 0.889 GB, free: 10.29 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008968/0.8722, allocations: 192 kB / 0.8892 GB, free: 10.1 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.844e-05/0.8722, allocations: 11.94 kB / 0.8892 GB, free: 10.09 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001481/0.8737, allocations: 246.4 kB / 0.8895 GB, free: 9.848 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/0.8738, allocations: 31.98 kB / 0.8895 GB, free: 9.816 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.0005283/0.8743, allocations: 332.2 kB / 0.8898 GB, free: 9.48 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002872/0.8746, allocations: 114.6 kB / 0.8899 GB, free: 9.367 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00211/0.8767, allocations: 0.9887 MB / 0.8909 GB, free: 8.371 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.826e-05/0.8768, allocations: 12 kB / 0.8909 GB, free: 8.359 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.8768, allocations: 0 / 0.8909 GB, free: 8.359 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.8768, allocations: 3.984 kB / 0.8909 GB, free: 8.355 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005332/0.8821, allocations: 3.166 MB / 0.894 GB, free: 5.035 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.72e-05/0.8822, allocations: 8 kB / 0.894 GB, free: 5.027 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005758/0.8828, allocations: 120 kB / 0.8941 GB, free: 4.91 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.401e-05/0.8828, allocations: 15.94 kB / 0.8941 GB, free: 4.895 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.793e-05/0.8829, allocations: 27.98 kB / 0.8942 GB, free: 4.867 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.347e-05/0.8829, allocations: 11.98 kB / 0.8942 GB, free: 4.855 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.457e-06/0.8829, allocations: 11.94 kB / 0.8942 GB, free: 4.844 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002248/0.8851, allocations: 1.337 MB / 0.8955 GB, free: 3.387 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006334/0.8858, allocations: 331.4 kB / 0.8958 GB, free: 3.043 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002314/0.886, allocations: 24 kB / 0.8958 GB, free: 3.02 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.8872, allocations: 103.9 kB / 0.8959 GB, free: 2.918 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.8873, allocations: 59.7 kB / 0.896 GB, free: 2.859 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.093e-05/0.8874, allocations: 47.97 kB / 0.896 GB, free: 2.812 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001598/0.889, allocations: 0.8443 MB / 0.8969 GB, free: 1.961 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.889, allocations: 0 / 0.8969 GB, free: 1.961 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001194/0.8902, allocations: 299.8 kB / 0.8971 GB, free: 1.668 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.003452/0.8936, allocations: 2.124 MB / 0.8992 GB, free: 15.43 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002495/0.8962, allocations: 1.013 MB / 0.9002 GB, free: 14.41 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/0.8962, allocations: 0 / 0.9002 GB, free: 14.41 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0009599/0.8972, allocations: 0.5202 MB / 0.9007 GB, free: 13.88 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002985/0.9002, allocations: 0.5595 MB / 0.9013 GB, free: 13.36 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0173/0.9175, allocations: 9.37 MB / 0.9104 GB, free: 3.582 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008614/0.9184, allocations: 1.069 MB / 0.9115 GB, free: 2.484 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001134/0.9195, allocations: 275.7 kB / 0.9117 GB, free: 2.215 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005674/0.9201, allocations: 359.3 kB / 0.9121 GB, free: 1.863 MB / 0.67 GB Notification: Performance of SimCode: time 1.092e-06/0.9201, allocations: 0 / 0.9121 GB, free: 1.863 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0721/0.9922, allocations: 31.76 MB / 0.9431 GB, free: 2.41 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.119/10.11, allocations: 8.766 kB / 0.9431 GB, free: 2.406 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)