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.001448/0.001448, allocations: 109.5 kB / 16.41 MB, free: 6.461 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.001639/0.001639, allocations: 192.3 kB / 17.35 MB, free: 5.711 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.291/1.291, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01106/0.01106, allocations: 2.777 MB / 294 MB, free: 11.93 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 64.14 kB / 406.6 MB, free: 29.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06965/0.07092, allocations: 50.24 MB / 456.8 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit): time 0.2599/0.3308, allocations: 97.15 MB / 0.541 GB, free: 2.602 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04633/0.3772, allocations: 59.32 MB / 0.5989 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001051/0.3783, allocations: 4 kB / 0.5989 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003221/0.3815, allocations: 1.379 MB / 0.6003 GB, free: 15.2 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.01882/0.4004, allocations: 7.343 MB / 0.6074 GB, free: 7.805 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.007784/0.4082, allocations: 2.915 MB / 0.6103 GB, free: 4.875 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002346/0.4105, allocations: 1.751 MB / 0.612 GB, free: 3.113 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002664/0.4108, allocations: 137.3 kB / 0.6121 GB, free: 2.977 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005957/0.4168, allocations: 0.7631 MB / 0.6129 GB, free: 2.242 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009565/0.4177, allocations: 0.5948 MB / 0.6134 GB, free: 1.645 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000151/0.4179, allocations: 72 kB / 0.6135 GB, free: 1.574 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01458/0.4325, allocations: 3.844 MB / 0.6173 GB, free: 13.75 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002321/0.4327, allocations: 210.9 kB / 0.6175 GB, free: 13.55 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009954/0.4337, allocations: 0.7153 MB / 0.6182 GB, free: 12.83 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01096/0.4447, allocations: 3.871 MB / 0.6219 GB, free: 8.941 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.4447, allocations: 0 / 0.6219 GB, free: 8.941 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.4447, allocations: 0 / 0.6219 GB, free: 8.941 MB / 462.1 MB Notification: Performance of Transformations before backend: time 3.542e-05/0.4448, allocations: 0 / 0.6219 GB, free: 8.941 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.003091/0.4479, allocations: 2.061 MB / 0.624 GB, free: 6.82 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.4479, allocations: 8.031 kB / 0.624 GB, free: 6.812 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005322/0.4532, allocations: 1.409 MB / 0.6253 GB, free: 5.402 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007772/0.454, allocations: 0.4946 MB / 0.6258 GB, free: 4.867 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.049e-05/0.4541, allocations: 82.52 kB / 0.6259 GB, free: 4.785 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.4543, allocations: 100.4 kB / 0.626 GB, free: 4.688 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002799/0.4571, allocations: 1.909 MB / 0.6279 GB, free: 2.715 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.932e-05/0.4571, allocations: 7.938 kB / 0.6279 GB, free: 2.707 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.488e-05/0.4572, allocations: 47.98 kB / 0.6279 GB, free: 2.66 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.573e-05/0.4573, allocations: 87.94 kB / 0.628 GB, free: 2.574 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002638/0.4599, allocations: 1.835 MB / 0.6298 GB, free: 0.7383 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007528/0.4675, allocations: 9.179 MB / 0.6388 GB, free: 6.516 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001321/0.4688, allocations: 0.7686 MB / 0.6395 GB, free: 5.73 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008942/0.4697, allocations: 0.6618 MB / 0.6401 GB, free: 5.059 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00256/0.4723, allocations: 2.887 MB / 0.643 GB, free: 1.848 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.03e-05/0.4723, allocations: 34.5 kB / 0.643 GB, free: 1.805 MB / 478.1 MB Notification: Performance of pre-optimization done (n=193): time 2.595e-06/0.4723, allocations: 0 / 0.643 GB, free: 1.805 MB / 478.1 MB Notification: Performance of matching and sorting (n=193): time 0.002758/0.4751, allocations: 1.332 MB / 0.6443 GB, free: 484 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.949e-05/0.4752, allocations: 81.11 kB / 0.6444 GB, free: 384 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001967/0.4754, allocations: 202.2 kB / 0.6446 GB, free: 172 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.737e-05/0.4754, allocations: 29.7 kB / 0.6446 GB, free: 136 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002645/0.4757, allocations: 469.9 kB / 0.645 GB, free: 15.66 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004375/0.4761, allocations: 0.6348 MB / 0.6457 GB, free: 15.02 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002428/0.4764, allocations: 178.1 kB / 0.6458 GB, free: 14.84 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.748e-05/0.4765, allocations: 306 kB / 0.6461 GB, free: 14.54 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005313/0.477, allocations: 290.5 kB / 0.6464 GB, free: 14.25 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000703/0.4777, allocations: 0.5397 MB / 0.6469 GB, free: 13.62 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001384/0.4791, allocations: 1.002 MB / 0.6479 GB, free: 12.52 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.4791, allocations: 0 / 0.6479 GB, free: 12.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.001689/0.4808, allocations: 0.9738 MB / 0.6489 GB, free: 11.54 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.4809, allocations: 11.59 kB / 0.6489 GB, free: 11.53 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.4809, allocations: 8.094 kB / 0.6489 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/0.4809, allocations: 12 kB / 0.6489 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003061/0.4812, allocations: 91.58 kB / 0.649 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.477e-05/0.4812, allocations: 15.94 kB / 0.649 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004113/0.4817, allocations: 118.9 kB / 0.6491 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.447e-05/0.4817, allocations: 32 kB / 0.6491 GB, free: 11.26 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.0004297/0.4822, allocations: 306.3 kB / 0.6494 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/0.4823, allocations: 59.53 kB / 0.6495 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001316/0.4825, allocations: 48.97 kB / 0.6495 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.4825, allocations: 7.922 kB / 0.6495 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.4825, allocations: 0 / 0.6495 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001528/0.4826, allocations: 168.2 kB / 0.6497 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.252e-05/0.4827, allocations: 4 kB / 0.6497 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000305/0.483, allocations: 15.98 kB / 0.6497 GB, free: 10.63 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.828e-05/0.4831, allocations: 27.97 kB / 0.6497 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00149/0.4846, allocations: 0.9821 MB / 0.6507 GB, free: 9.617 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001479/0.4861, allocations: 1.079 MB / 0.6518 GB, free: 8.523 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000621/0.4867, allocations: 425.9 kB / 0.6522 GB, free: 8.105 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001058/0.4868, allocations: 136.3 kB / 0.6523 GB, free: 7.973 MB / 494.1 MB Notification: Performance of Backend: time 3.4e-07/0.4868, allocations: 0 / 0.6523 GB, free: 7.973 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005256/0.4921, allocations: 3.512 MB / 0.6557 GB, free: 4.375 MB / 494.1 MB Notification: Performance of SimCode: time 0.004334/0.4964, allocations: 4.376 MB / 0.66 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of Templates: time 0.2882/0.7846, allocations: 50.97 MB / 0.7098 GB, free: 206.4 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)