Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.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/ExternalMedia 4.0.0/package.mo", uses=false) Using package ExternalMedia with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.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(ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit") translateModel(ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 110.8 kB / 16.42 MB, free: 6.512 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.001026/0.001026, allocations: 189.5 kB / 17.35 MB, free: 5.734 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.292/1.292, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01157/0.01157, allocations: 2.781 MB / 294 MB, free: 11.97 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.001171, allocations: 67.89 kB / 406.6 MB, free: 29.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06706/0.06824, allocations: 50.23 MB / 456.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit): time 0.2435/0.3118, allocations: 97.14 MB / 0.541 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04357/0.3554, allocations: 59.33 MB / 0.5989 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009316/0.3563, allocations: 7.938 kB / 0.5989 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003104/0.3595, allocations: 1.375 MB / 0.6002 GB, free: 15.18 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1148:25-1162:18:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium1.completeBubbleDewStates.Medium.setDewState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium1.completeBubbleDewStates.Medium.setState_ph'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1132:25-1146:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium1.completeBubbleDewStates.Medium.setBubbleState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium1.completeBubbleDewStates.Medium.setState_ph'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1148:25-1162:18:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium2.completeBubbleDewStates.Medium.setDewState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium2.completeBubbleDewStates.Medium.setState_ph'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1132:25-1146:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium2.completeBubbleDewStates.Medium.setBubbleState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium2.completeBubbleDewStates.Medium.setState_ph'. Notification: Performance of NFTyping.typeBindings: time 0.01795/0.3775, allocations: 7.352 MB / 0.6074 GB, free: 7.781 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1092:15-1106:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium1.Medium.setSat_p'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1132:25-1146:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium1.Medium.setBubbleState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium1.Medium.setState_ph'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1148:25-1162:18:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium1.Medium.setDewState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium1.Medium.setState_ph'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1092:15-1106:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium2.Medium.setSat_p'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1132:25-1146:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium2.Medium.setBubbleState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium2.Medium.setState_ph'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1148:25-1162:18:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium2.Medium.setDewState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.medium2.Medium.setState_ph'. Notification: Performance of NFTyping.typeClassSections: time 0.007398/0.3849, allocations: 2.915 MB / 0.6103 GB, free: 4.852 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002067/0.3869, allocations: 1.747 MB / 0.612 GB, free: 3.094 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002436/0.3872, allocations: 133.4 kB / 0.6121 GB, free: 2.957 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005822/0.393, allocations: 0.7783 MB / 0.6129 GB, free: 2.215 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009269/0.394, allocations: 0.5987 MB / 0.6134 GB, free: 1.613 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001411/0.3941, allocations: 76 kB / 0.6135 GB, free: 1.539 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01437/0.4085, allocations: 3.821 MB / 0.6173 GB, free: 13.74 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002324/0.4087, allocations: 210.8 kB / 0.6175 GB, free: 13.54 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009393/0.4097, allocations: 0.7076 MB / 0.6181 GB, free: 12.82 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01095/0.4206, allocations: 3.861 MB / 0.6219 GB, free: 8.949 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.4207, allocations: 0 / 0.6219 GB, free: 8.949 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.4207, allocations: 4 kB / 0.6219 GB, free: 8.945 MB / 462.1 MB Notification: Performance of Transformations before backend: time 3.36e-05/0.4207, allocations: 7.938 kB / 0.6219 GB, free: 8.938 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 438 * Number of variables: 438 Notification: Performance of Generate backend data structure: time 0.002867/0.4236, allocations: 2.007 MB / 0.6239 GB, free: 6.875 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.4236, allocations: 8.031 kB / 0.6239 GB, free: 6.867 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00514/0.4288, allocations: 1.397 MB / 0.6253 GB, free: 5.469 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006985/0.4295, allocations: 0.5033 MB / 0.6258 GB, free: 4.926 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.396e-05/0.4296, allocations: 82.52 kB / 0.6258 GB, free: 4.844 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001532/0.4297, allocations: 108.4 kB / 0.6259 GB, free: 4.738 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002796/0.4325, allocations: 1.909 MB / 0.6278 GB, free: 2.766 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.216e-05/0.4326, allocations: 0 / 0.6278 GB, free: 2.766 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.682e-05/0.4327, allocations: 44 kB / 0.6278 GB, free: 2.723 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.489e-05/0.4328, allocations: 91.94 kB / 0.6279 GB, free: 2.633 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002602/0.4354, allocations: 1.835 MB / 0.6297 GB, free: 0.7969 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007266/0.4426, allocations: 9.158 MB / 0.6387 GB, free: 6.594 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/0.444, allocations: 0.7725 MB / 0.6394 GB, free: 5.805 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009123/0.4449, allocations: 0.6657 MB / 0.6401 GB, free: 5.129 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002572/0.4475, allocations: 2.867 MB / 0.6429 GB, free: 1.938 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/0.4475, allocations: 46.55 kB / 0.6429 GB, free: 1.883 MB / 478.1 MB Notification: Performance of pre-optimization done (n=193): time 2.204e-06/0.4475, allocations: 0 / 0.6429 GB, free: 1.883 MB / 478.1 MB Notification: Performance of matching and sorting (n=193): time 0.002754/0.4503, allocations: 1.324 MB / 0.6442 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.4503, allocations: 81.11 kB / 0.6443 GB, free: 472 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000198/0.4505, allocations: 210 kB / 0.6445 GB, free: 252 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.379e-05/0.4506, allocations: 37.64 kB / 0.6445 GB, free: 208 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002841/0.4509, allocations: 440.4 kB / 0.6449 GB, free: 15.76 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004665/0.4514, allocations: 0.6078 MB / 0.6455 GB, free: 15.14 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000253/0.4516, allocations: 178.1 kB / 0.6457 GB, free: 14.96 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.55e-05/0.4517, allocations: 306 kB / 0.646 GB, free: 14.66 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005352/0.4523, allocations: 286.5 kB / 0.6463 GB, free: 14.38 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000704/0.453, allocations: 0.5436 MB / 0.6468 GB, free: 13.74 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00138/0.4544, allocations: 0.99 MB / 0.6478 GB, free: 12.65 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.4544, allocations: 4 kB / 0.6478 GB, free: 12.65 MB / 494.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.001638/0.456, allocations: 0.9808 MB / 0.6487 GB, free: 11.66 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.4561, allocations: 8 kB / 0.6487 GB, free: 11.65 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.4561, allocations: 11.98 kB / 0.6487 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.02e-05/0.4561, allocations: 8 kB / 0.6488 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003072/0.4564, allocations: 87.83 kB / 0.6488 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.775e-05/0.4564, allocations: 15.94 kB / 0.6489 GB, free: 11.53 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000403/0.4568, allocations: 118.9 kB / 0.649 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.547e-05/0.4569, allocations: 32 kB / 0.649 GB, free: 11.38 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 14 (medium2.completeBubbleDewStates.bubbleStateTwoPhase.state.phase,medium2.completeBubbleDewStates.bubbleStateOnePhase.state.phase,medium2.completeBubbleDewStates.dewStateTwoPhase.state.phase,medium2.completeBubbleDewStates.dewStateOnePhase.state.phase,medium2.completeState.state.phase,medium2.baseProperties.phaseOutput,medium1.completeBubbleDewStates.bubbleStateTwoPhase.state.phase,medium1.completeBubbleDewStates.bubbleStateOnePhase.state.phase,medium1.completeBubbleDewStates.dewStateTwoPhase.state.phase,medium1.completeBubbleDewStates.dewStateOnePhase.state.phase,medium1.completeState.state.phase,medium1.baseProperties.phaseOutput,medium2.baseProperties.phaseInput,medium1.baseProperties.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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.000392/0.4573, allocations: 290.3 kB / 0.6493 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000131/0.4574, allocations: 59.16 kB / 0.6493 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001294/0.4576, allocations: 48.95 kB / 0.6494 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.4576, allocations: 3.938 kB / 0.6494 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.4576, allocations: 3.938 kB / 0.6494 GB, free: 10.97 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001395/0.4577, allocations: 167.8 kB / 0.6495 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.498e-05/0.4578, allocations: 4 kB / 0.6495 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00031/0.4581, allocations: 15.94 kB / 0.6496 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.509e-05/0.4582, allocations: 31.95 kB / 0.6496 GB, free: 10.74 MB / 494.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001425/0.4596, allocations: 0.9783 MB / 0.6505 GB, free: 9.754 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001441/0.4611, allocations: 1.075 MB / 0.6516 GB, free: 8.664 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006086/0.4617, allocations: 425.8 kB / 0.652 GB, free: 8.25 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.743e-05/0.4618, allocations: 132.3 kB / 0.6521 GB, free: 8.121 MB / 494.1 MB Notification: Performance of Backend: time 4.71e-07/0.4618, allocations: 4 kB / 0.6521 GB, free: 8.117 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004972/0.4668, allocations: 3.494 MB / 0.6555 GB, free: 4.535 MB / 494.1 MB Notification: Performance of SimCode: time 0.00409/0.4709, allocations: 4.329 MB / 0.6598 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of Templates: time 0.2274/0.6983, allocations: 50.98 MB / 0.7096 GB, free: 206.8 MB / 0.5294 GB make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.makefile (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.sim & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.pipe 2>&1)