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: "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestStatesSat,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestStatesSat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestStatesSat,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestStatesSat",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.0009855/0.0009857, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001004/0.001004, allocations: 189.2 kB / 16.25 MB, free: 6.145 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.254/1.254, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1159/0.1159, allocations: 2.758 MB / 292.8 MB, free: 3.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 59.91 kB / 354 MB, free: 4.828 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08001/0.08138, allocations: 50.24 MB / 404.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestStatesSat): time 0.1838/0.2652, allocations: 82.61 MB / 486.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03685/0.3021, allocations: 51.06 MB / 0.5253 GB, free: 8.098 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001155/0.3033, allocations: 6.344 kB / 0.5253 GB, free: 8.098 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00263/0.306, allocations: 1.176 MB / 0.5264 GB, free: 7.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01692/0.3229, allocations: 6.576 MB / 0.5329 GB, free: 2.672 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003946/0.3269, allocations: 1.567 MB / 0.5344 GB, free: 1.473 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001751/0.3286, allocations: 1.738 MB / 0.5361 GB, free: 408 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.3288, allocations: 130 kB / 0.5362 GB, free: 280 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004102/0.3329, allocations: 0.5766 MB / 0.5368 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006357/0.3336, allocations: 0.614 MB / 0.5374 GB, free: 15.08 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.52e-05/0.3337, allocations: 48 kB / 0.5374 GB, free: 15.04 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01205/0.3457, allocations: 3.394 MB / 0.5407 GB, free: 11.67 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001688/0.3459, allocations: 202.7 kB / 0.5409 GB, free: 11.47 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006424/0.3465, allocations: 0.7073 MB / 0.5416 GB, free: 10.76 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009528/0.3561, allocations: 3.304 MB / 0.5448 GB, free: 7.449 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3561, allocations: 0 / 0.5448 GB, free: 7.449 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3561, allocations: 0 / 0.5448 GB, free: 7.449 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.863e-05/0.3561, allocations: 0 / 0.5448 GB, free: 7.449 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.002397/0.3585, allocations: 1.991 MB / 0.5468 GB, free: 5.41 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.3586, allocations: 12.03 kB / 0.5468 GB, free: 5.398 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002157/0.3588, allocations: 238.5 kB / 0.547 GB, free: 5.156 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004458/0.3633, allocations: 1.306 MB / 0.5483 GB, free: 3.848 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000502/0.3638, allocations: 462.4 kB / 0.5487 GB, free: 3.355 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.96e-05/0.3639, allocations: 82.5 kB / 0.5488 GB, free: 3.273 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001077/0.364, allocations: 100.6 kB / 0.5489 GB, free: 3.176 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002345/0.3663, allocations: 1.869 MB / 0.5507 GB, free: 1.25 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.151e-05/0.3664, allocations: 4 kB / 0.5507 GB, free: 1.246 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.481e-05/0.3664, allocations: 51.94 kB / 0.5508 GB, free: 1.195 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.411e-05/0.3665, allocations: 83.92 kB / 0.5509 GB, free: 1.113 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002123/0.3686, allocations: 1.728 MB / 0.5526 GB, free: 15.38 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006264/0.3749, allocations: 8.534 MB / 0.5609 GB, free: 5.836 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001411/0.3763, allocations: 1.006 MB / 0.5619 GB, free: 4.758 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009242/0.3773, allocations: 0.8191 MB / 0.5627 GB, free: 3.914 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003168/0.3805, allocations: 3.548 MB / 0.5661 GB, free: 15.99 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.16e-05/0.3805, allocations: 46.5 kB / 0.5662 GB, free: 15.94 MB / 446.1 MB Notification: Performance of pre-optimization done (n=253): time 2.575e-06/0.3805, allocations: 0 / 0.5662 GB, free: 15.94 MB / 446.1 MB Notification: Performance of matching and sorting (n=253): time 0.003035/0.3835, allocations: 1.74 MB / 0.5679 GB, free: 14.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.3837, allocations: 247.6 kB / 0.5681 GB, free: 13.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001694/0.3839, allocations: 186.3 kB / 0.5683 GB, free: 13.71 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.749e-05/0.3839, allocations: 29.7 kB / 0.5683 GB, free: 13.67 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002542/0.3842, allocations: 421.5 kB / 0.5687 GB, free: 13.25 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005674/0.3847, allocations: 0.7885 MB / 0.5695 GB, free: 12.45 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002301/0.385, allocations: 198.2 kB / 0.5697 GB, free: 12.25 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.92e-05/0.3851, allocations: 306 kB / 0.57 GB, free: 11.95 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005252/0.3856, allocations: 382.5 kB / 0.5704 GB, free: 11.57 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008147/0.3864, allocations: 0.6282 MB / 0.571 GB, free: 10.85 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.3878, allocations: 1.189 MB / 0.5721 GB, free: 9.578 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.3878, allocations: 0 / 0.5721 GB, free: 9.578 MB / 446.1 MB Notification: Performance of matching and sorting (n=274) (initialization): time 0.001665/0.3895, allocations: 1.194 MB / 0.5733 GB, free: 8.379 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.3895, allocations: 8 kB / 0.5733 GB, free: 8.371 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.3896, allocations: 4 kB / 0.5733 GB, free: 8.367 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.3896, allocations: 8.719 kB / 0.5733 GB, free: 8.359 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002678/0.3898, allocations: 87.83 kB / 0.5734 GB, free: 8.273 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.61e-05/0.3899, allocations: 15.88 kB / 0.5734 GB, free: 8.258 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006729/0.3906, allocations: 178.1 kB / 0.5736 GB, free: 8.082 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-05/0.3906, allocations: 28 kB / 0.5736 GB, free: 8.055 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.0003666/0.391, allocations: 264.2 kB / 0.5739 GB, free: 7.785 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002096/0.3912, allocations: 66.97 kB / 0.5739 GB, free: 7.719 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003396/0.3946, allocations: 3.256 MB / 0.5771 GB, free: 4.453 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001829/0.3964, allocations: 1.759 MB / 0.5788 GB, free: 2.684 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.3965, allocations: 5.375 kB / 0.5788 GB, free: 2.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.061e-05/0.3965, allocations: 15.95 kB / 0.5788 GB, free: 2.664 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1326/0.5291, allocations: 5.104 MB / 0.5838 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-05/0.5291, allocations: 3.125 kB / 0.5838 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007393/0.5299, allocations: 286.1 kB / 0.5841 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.185e-05/0.5299, allocations: 9.531 kB / 0.5841 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.083e-05/0.5299, allocations: 38.03 kB / 0.5841 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.066e-05/0.53, allocations: 15.47 kB / 0.5842 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.53, allocations: 0 / 0.5842 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002321/0.5323, allocations: 2.912 MB / 0.587 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003049/0.5326, allocations: 263.8 kB / 0.5873 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.63e-05/0.5327, allocations: 37.09 kB / 0.5873 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008995/0.5336, allocations: 180 kB / 0.5875 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.5337, allocations: 118.8 kB / 0.5876 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.554e-05/0.5338, allocations: 53.52 kB / 0.5876 GB, free: 136.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.494e-05/0.5339, allocations: 120.5 kB / 0.5877 GB, free: 136.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5339, allocations: 0 / 0.5877 GB, free: 136.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001279/0.5351, allocations: 0.515 MB / 0.5882 GB, free: 136.2 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.002874/0.538, allocations: 3.86 MB / 0.592 GB, free: 134.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004236/0.5423, allocations: 2.531 MB / 0.5945 GB, free: 132.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.5423, allocations: 0 / 0.5945 GB, free: 132.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.5433, allocations: 1.228 MB / 0.5957 GB, free: 132 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004424/0.5478, allocations: 1.05 MB / 0.5967 GB, free: 131.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007989/0.5558, allocations: 9.707 MB / 0.6062 GB, free: 125.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007531/0.5565, allocations: 1.479 MB / 0.6076 GB, free: 124.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008657/0.5574, allocations: 269.6 kB / 0.6079 GB, free: 124.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005594/0.558, allocations: 0.7619 MB / 0.6086 GB, free: 124.2 MB / 446.1 MB Notification: Performance of SimCode: time 3.51e-07/0.558, allocations: 3.688 kB / 0.6086 GB, free: 124.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.12/2.678, allocations: 53.7 MB / 0.6611 GB, free: 93.89 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001376/2.678, allocations: 235.8 kB / 0.6613 GB, free: 93.63 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.545/6.223, allocations: 3.938 kB / 0.6613 GB, free: 93.62 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestStatesSat_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_TestMedium_TestStatesSat.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestStatesSat.pipe 2>&1)