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.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.TestStatesSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat") translateModel(ExternalMedia.Test.TestMedium.TestStatesSat,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.009805/0.009805, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.517/1.517, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1517/0.1517, allocations: 2.786 MB / 294.2 MB, free: 4.301 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003232/0.0003232, allocations: 8 kB / 356.2 MB, free: 3.988 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1202, allocations: 51.24 MB / 407.5 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestStatesSat): time 0.3019/0.4222, allocations: 81.2 MB / 488.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05629/0.4785, allocations: 50.41 MB / 0.5264 GB, free: 8.598 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002208/0.4808, allocations: 4.625 kB / 0.5264 GB, free: 8.598 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004788/0.4856, allocations: 1.189 MB / 0.5276 GB, free: 7.992 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02831/0.5139, allocations: 6.57 MB / 0.534 GB, free: 3.789 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008828/0.5228, allocations: 1.573 MB / 0.5356 GB, free: 2.574 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003483/0.5263, allocations: 1.781 MB / 0.5373 GB, free: 1.551 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002654/0.5266, allocations: 132.1 kB / 0.5374 GB, free: 1.508 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005843/0.5325, allocations: 0.5518 MB / 0.538 GB, free: 1.254 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001866/0.5343, allocations: 0.6102 MB / 0.5386 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.736e-05/0.5344, allocations: 27.72 kB / 0.5386 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02252/0.557, allocations: 3.533 MB / 0.542 GB, free: 13.45 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004791/0.5575, allocations: 174.8 kB / 0.5422 GB, free: 13.27 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001618/0.5591, allocations: 0.7167 MB / 0.5429 GB, free: 12.55 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0183/0.5774, allocations: 3.265 MB / 0.5461 GB, free: 9.273 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.5775, allocations: 0 / 0.5461 GB, free: 9.273 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.5775, allocations: 0 / 0.5461 GB, free: 9.273 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.775e-05/0.5775, allocations: 0 / 0.5461 GB, free: 9.273 MB / 414.1 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.002832/0.5803, allocations: 1.779 MB / 0.5478 GB, free: 7.449 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.5804, allocations: 8.031 kB / 0.5478 GB, free: 7.441 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004907/0.5853, allocations: 1.306 MB / 0.5491 GB, free: 6.133 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008259/0.5861, allocations: 474.3 kB / 0.5496 GB, free: 5.629 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001239/0.5863, allocations: 82.5 kB / 0.5496 GB, free: 5.547 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.5864, allocations: 104.4 kB / 0.5497 GB, free: 5.445 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002707/0.5891, allocations: 1.87 MB / 0.5516 GB, free: 3.52 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.941e-05/0.5892, allocations: 6.062 kB / 0.5516 GB, free: 3.516 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.637e-05/0.5893, allocations: 44 kB / 0.5516 GB, free: 3.473 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.804e-05/0.5894, allocations: 87.92 kB / 0.5517 GB, free: 3.387 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002591/0.592, allocations: 1.74 MB / 0.5534 GB, free: 1.641 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008224/0.6002, allocations: 8.549 MB / 0.5618 GB, free: 8.078 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001609/0.6018, allocations: 1.002 MB / 0.5627 GB, free: 7.004 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009831/0.6028, allocations: 0.8269 MB / 0.5635 GB, free: 6.152 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003825/0.6067, allocations: 3.548 MB / 0.567 GB, free: 2.234 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/0.6067, allocations: 46.5 kB / 0.567 GB, free: 2.18 MB / 430.1 MB Notification: Performance of pre-optimization done (n=253): time 2.144e-06/0.6067, allocations: 0 / 0.567 GB, free: 2.18 MB / 430.1 MB Notification: Performance of matching and sorting (n=253): time 0.00328/0.61, allocations: 1.76 MB / 0.5688 GB, free: 436 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001712/0.6102, allocations: 243.3 kB / 0.569 GB, free: 136 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002586/0.6105, allocations: 182.8 kB / 0.5692 GB, free: 15.94 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.678e-05/0.6105, allocations: 33.7 kB / 0.5692 GB, free: 15.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003038/0.6108, allocations: 421.4 kB / 0.5696 GB, free: 15.48 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007284/0.6116, allocations: 0.7808 MB / 0.5704 GB, free: 14.69 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001933/0.6118, allocations: 138.2 kB / 0.5705 GB, free: 14.55 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.6119, allocations: 314 kB / 0.5708 GB, free: 14.23 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006215/0.6126, allocations: 378.5 kB / 0.5712 GB, free: 13.86 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009323/0.6135, allocations: 0.6399 MB / 0.5718 GB, free: 13.13 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001643/0.6152, allocations: 1.209 MB / 0.573 GB, free: 11.83 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.6152, allocations: 4 kB / 0.573 GB, free: 11.83 MB / 446.1 MB Notification: Performance of matching and sorting (n=274) (initialization): time 0.002007/0.6172, allocations: 1.202 MB / 0.5741 GB, free: 10.62 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.041e-05/0.6172, allocations: 9.406 kB / 0.5742 GB, free: 10.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.641e-05/0.6173, allocations: 4 kB / 0.5742 GB, free: 10.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.73e-05/0.6173, allocations: 15.98 kB / 0.5742 GB, free: 10.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003184/0.6176, allocations: 77.08 kB / 0.5742 GB, free: 10.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.41e-05/0.6177, allocations: 11.94 kB / 0.5743 GB, free: 10.51 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001133/0.6188, allocations: 182.1 kB / 0.5744 GB, free: 10.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.603e-05/0.6189, allocations: 32 kB / 0.5745 GB, free: 10.3 MB / 446.1 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.0007371/0.6196, allocations: 260.3 kB / 0.5747 GB, free: 10.03 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003315/0.62, allocations: 66.97 kB / 0.5748 GB, free: 9.965 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004313/0.6243, allocations: 3.268 MB / 0.578 GB, free: 6.691 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002195/0.6265, allocations: 1.759 MB / 0.5797 GB, free: 4.918 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.477e-05/0.6265, allocations: 4 kB / 0.5797 GB, free: 4.914 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.381e-05/0.6266, allocations: 15.91 kB / 0.5797 GB, free: 4.898 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2551/0.8816, allocations: 5.117 MB / 0.5847 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.748e-05/0.8817, allocations: 1.438 kB / 0.5847 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001203/0.8829, allocations: 289.4 kB / 0.585 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.532e-05/0.883, allocations: 8.562 kB / 0.585 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001262/0.8831, allocations: 36.97 kB / 0.585 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.161e-05/0.8831, allocations: 13.3 kB / 0.585 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/0.8832, allocations: 1.656 kB / 0.585 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003835/0.887, allocations: 2.911 MB / 0.5879 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000605/0.8876, allocations: 273.6 kB / 0.5881 GB, free: 133.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.635e-05/0.8877, allocations: 32.5 kB / 0.5882 GB, free: 133.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001187/0.8889, allocations: 181.1 kB / 0.5883 GB, free: 133.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001759/0.8891, allocations: 119.1 kB / 0.5885 GB, free: 133.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.9e-05/0.8892, allocations: 52.11 kB / 0.5885 GB, free: 133.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.196e-05/0.8893, allocations: 116.8 kB / 0.5886 GB, free: 133.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8893, allocations: 0 / 0.5886 GB, free: 133.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001695/0.891, allocations: 0.5148 MB / 0.5891 GB, free: 133.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 24 (baseProperties1.state.phase,baseProperties1.phaseOutput,baseProperties2.state.phase,baseProperties2.phaseOutput,state1.phase,$cse11.phase,state2.phase,$cse10.phase,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,$cse1.phase,$cse2.phase,$cse3.phase,$cse4.phase,$cse5.phase,$cse6.phase,$cse7.phase,$cse8.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (199): * Single equations (assignments): 181 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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.0008923/0.8919, allocations: 0.4984 MB / 0.5896 GB, free: 133.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003089/0.895, allocations: 2.45 MB / 0.592 GB, free: 132.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.895, allocations: 0 / 0.592 GB, free: 132.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001569/0.8966, allocations: 1.239 MB / 0.5932 GB, free: 132.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005585/0.9022, allocations: 1.02 MB / 0.5942 GB, free: 132.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005273/0.9074, allocations: 4.512 MB / 0.5986 GB, free: 130.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009407/0.9084, allocations: 1.469 MB / 0.6 GB, free: 129.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001094/0.9095, allocations: 268.3 kB / 0.6003 GB, free: 129.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001624/0.9097, allocations: 102.4 kB / 0.6004 GB, free: 129.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/0.9097, allocations: 2.312 kB / 0.6004 GB, free: 129.8 MB / 446.1 MB Notification: Performance of Templates: time 0.06384/0.9735, allocations: 35.54 MB / 0.6351 GB, free: 121 MB / 446.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat.makefile Environment - environmentSimulation: (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=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat.pipe 2>&1) Environment - environmentSimulation: