Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009419/0.0009419, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 169 kB / 23.02 MB, free: 1.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.015/1.015, allocations: 177.1 MB / 203.4 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo): time 0.01309/0.01309, allocations: 1.988 MB / 261.9 MB, free: 11.07 MB / 250.7 MB " [Timeout remaining time 180] Using package ExternalMedia with version 4.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ExternalMedia.Test.TestMedium.TestStatesSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat") translateModel(ExternalMedia.Test.TestMedium.TestStatesSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 332.3 MB, free: 16.96 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.758e-05/2.936e-05, allocations: 2.312 kB / 332.3 MB, free: 16.95 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestStatesSat): time 0.008926/0.008955, allocations: 16.05 MB / 348.4 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01099/0.01994, allocations: 14.44 MB / 362.8 MB, free: 2.344 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008562/0.0208, allocations: 4 kB / 362.8 MB, free: 2.34 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000819/0.02162, allocations: 357.2 kB / 363.2 MB, free: 1.988 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1148:25-1162:18:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestStatesSat.Medium.setDewState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestStatesSat.Medium.setState_ph'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1132:25-1146:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestStatesSat.Medium.setBubbleState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestStatesSat.Medium.setState_ph'. Notification: Performance of NFTyping.typeBindings: time 0.003982/0.0256, allocations: 1.916 MB / 365.1 MB, free: 60 kB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1092:15-1106:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestStatesSat.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestStatesSat.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.002406/0.02801, allocations: 1.041 MB / 366.1 MB, free: 15.01 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001854/0.02986, allocations: 1.85 MB / 368 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.03002, allocations: 59.89 kB / 368 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005323/0.03535, allocations: 0.8472 MB / 368.9 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006831/0.03603, allocations: 494.5 kB / 369.4 MB, free: 11.76 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.576e-05/0.03611, allocations: 48 kB / 369.4 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002268/0.03838, allocations: 0.8003 MB / 370.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001692/0.03855, allocations: 198.7 kB / 370.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005421/0.03909, allocations: 478.8 kB / 370.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002734/0.04183, allocations: 1.545 MB / 372.4 MB, free: 8.699 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.04183, allocations: 0 / 372.4 MB, free: 8.699 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.04183, allocations: 0 / 372.4 MB, free: 8.699 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.838e-06/0.04184, allocations: 0 / 372.4 MB, free: 8.699 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 490 * Number of variables: 490 Notification: Performance of Generate backend data structure: time 0.002033/0.04388, allocations: 1.743 MB / 374.2 MB, free: 6.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.04392, allocations: 8.031 kB / 374.2 MB, free: 6.902 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004959/0.04888, allocations: 2.745 MB / 376.9 MB, free: 4.152 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005748/0.04945, allocations: 422.6 kB / 377.3 MB, free: 3.711 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.933e-05/0.04952, allocations: 78.5 kB / 377.4 MB, free: 3.633 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.04963, allocations: 108.4 kB / 377.5 MB, free: 3.527 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001692/0.05132, allocations: 1.281 MB / 378.8 MB, free: 2.148 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.761e-05/0.05135, allocations: 4.172 kB / 378.8 MB, free: 2.145 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.469e-05/0.05141, allocations: 48.12 kB / 378.8 MB, free: 2.098 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.797e-05/0.05148, allocations: 95.86 kB / 378.9 MB, free: 2.004 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001123/0.0526, allocations: 0.7202 MB / 379.7 MB, free: 1.273 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004139/0.05674, allocations: 4.468 MB / 384.1 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008556/0.0576, allocations: 0.5916 MB / 384.7 MB, free: 12 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004343/0.05803, allocations: 376 kB / 385.1 MB, free: 11.61 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002016/0.06005, allocations: 2.52 MB / 387.6 MB, free: 9.059 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/0.06008, allocations: 53.33 kB / 387.7 MB, free: 8.996 MB / 314.7 MB Notification: Performance of pre-optimization done (n=253): time 2.565e-06/0.06008, allocations: 4 kB / 387.7 MB, free: 8.992 MB / 314.7 MB Notification: Performance of matching and sorting (n=253): time 0.002367/0.06245, allocations: 1.373 MB / 389 MB, free: 7.621 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.949e-05/0.06254, allocations: 239.3 kB / 389.3 MB, free: 7.332 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001678/0.06271, allocations: 241.7 kB / 389.5 MB, free: 7.078 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.326e-05/0.06274, allocations: 33.7 kB / 389.5 MB, free: 7.039 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002124/0.06295, allocations: 485.7 kB / 390 MB, free: 6.555 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004715/0.06342, allocations: 0.8287 MB / 390.8 MB, free: 5.719 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002386/0.06366, allocations: 220.2 kB / 391.1 MB, free: 5.492 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.06378, allocations: 492.4 kB / 391.5 MB, free: 5.004 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002683/0.06405, allocations: 186.6 kB / 391.7 MB, free: 4.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004836/0.06453, allocations: 0.5329 MB / 392.3 MB, free: 4.16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008565/0.06539, allocations: 0.8627 MB / 393.1 MB, free: 3.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.209e-06/0.06539, allocations: 4 kB / 393.1 MB, free: 3.176 MB / 314.7 MB Notification: Performance of matching and sorting (n=274) (initialization): time 0.001127/0.06652, allocations: 0.9486 MB / 394.1 MB, free: 2.219 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.06654, allocations: 10.81 kB / 394.1 MB, free: 2.211 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/0.06656, allocations: 7.984 kB / 394.1 MB, free: 2.203 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.446e-05/0.06658, allocations: 12 kB / 394.1 MB, free: 2.191 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002094/0.06679, allocations: 75.84 kB / 394.2 MB, free: 2.117 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.415e-05/0.0668, allocations: 12.53 kB / 394.2 MB, free: 2.105 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003081/0.06711, allocations: 138.7 kB / 394.3 MB, free: 1.969 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.37e-05/0.06716, allocations: 28 kB / 394.3 MB, free: 1.941 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 16 (completeBubbleDewStates2.bubbleStateTwoPhase.state.phase,completeBubbleDewStates2.bubbleStateOnePhase.state.phase,completeBubbleDewStates2.dewStateTwoPhase.state.phase,completeBubbleDewStates2.dewStateOnePhase.state.phase,completeBubbleDewStates1.bubbleStateTwoPhase.state.phase,completeBubbleDewStates1.bubbleStateOnePhase.state.phase,completeBubbleDewStates1.dewStateTwoPhase.state.phase,completeBubbleDewStates1.dewStateOnePhase.state.phase,state2.phase,state1.phase,baseProperties2.phaseOutput,baseProperties2.state.phase,baseProperties1.phaseOutput,baseProperties1.state.phase,baseProperties2.phaseInput,baseProperties1.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * 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.0002179/0.06737, allocations: 199 kB / 394.5 MB, free: 1.734 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002033/0.06758, allocations: 83.44 kB / 394.6 MB, free: 1.652 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003345/0.06791, allocations: 58.39 kB / 394.7 MB, free: 1.594 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.992e-05/0.06793, allocations: 23.97 kB / 394.7 MB, free: 1.57 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.06794, allocations: 3.984 kB / 394.7 MB, free: 1.566 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.06794, allocations: 4 kB / 394.7 MB, free: 1.562 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001011/0.06896, allocations: 0.7144 MB / 395.4 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.06896, allocations: 4 kB / 395.4 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001037/0.06906, allocations: 39.91 kB / 395.5 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.06907, allocations: 4 kB / 395.5 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.174e-05/0.0691, allocations: 16 kB / 395.5 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.0691, allocations: 4 kB / 395.5 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.06911, allocations: 0 / 395.5 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001316/0.07042, allocations: 1.876 MB / 397.4 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.712e-05/0.07051, allocations: 106.9 kB / 397.5 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.918e-05/0.07055, allocations: 12 kB / 397.5 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000428/0.07098, allocations: 16 kB / 397.5 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.017e-05/0.07107, allocations: 47.81 kB / 397.5 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.115e-05/0.0711, allocations: 27.92 kB / 397.6 MB, free: 14.63 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.438e-05/0.07117, allocations: 148.1 kB / 397.7 MB, free: 14.49 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.07117, allocations: 0 / 397.7 MB, free: 14.49 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001045/0.07222, allocations: 411 kB / 398.1 MB, free: 14.09 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 14 (completeBubbleDewStates1.dewStateOnePhase.state.phase,completeBubbleDewStates1.dewStateTwoPhase.state.phase,completeBubbleDewStates1.bubbleStateOnePhase.state.phase,completeBubbleDewStates1.bubbleStateTwoPhase.state.phase,completeBubbleDewStates2.dewStateOnePhase.state.phase,completeBubbleDewStates2.dewStateTwoPhase.state.phase,completeBubbleDewStates2.bubbleStateOnePhase.state.phase,completeBubbleDewStates2.bubbleStateTwoPhase.state.phase,state2.phase,state1.phase,baseProperties2.state.phase,baseProperties2.phaseOutput,baseProperties1.state.phase,baseProperties1.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * 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.0004853/0.0727, allocations: 242.6 kB / 398.4 MB, free: 13.88 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00134/0.07404, allocations: 1.509 MB / 399.9 MB, free: 12.21 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.07405, allocations: 4 kB / 399.9 MB, free: 12.21 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00137/0.07542, allocations: 1.809 MB / 401.7 MB, free: 10 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002601/0.07802, allocations: 0.6403 MB / 402.3 MB, free: 9.398 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00307/0.08109, allocations: 2.473 MB / 404.8 MB, free: 6.848 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003711/0.08146, allocations: 379.4 kB / 405.2 MB, free: 6.453 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007963/0.08225, allocations: 422.8 kB / 405.6 MB, free: 6.035 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001549/0.08241, allocations: 100.5 kB / 405.7 MB, free: 5.934 MB / 330.7 MB Notification: Performance of SimCode: time 9.52e-07/0.08241, allocations: 4 kB / 405.7 MB, free: 5.93 MB / 330.7 MB Notification: Performance of Templates: time 0.1261/0.2085, allocations: 26.33 MB / 432 MB, free: 71.24 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat.makefile [Timeout 660] (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat.sim & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat -abortSlowSimulation -alarm=240 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.716974255628884]