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.001053/0.001053, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001189/0.001189, allocations: 195.1 kB / 16.14 MB, free: 6.715 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.296/1.296, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1143/0.1143, allocations: 2.763 MB / 292.7 MB, free: 3.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 56.09 kB / 353.8 MB, free: 5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09037/0.09156, allocations: 50.25 MB / 404.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestStatesSat): time 0.203/0.2946, allocations: 82.75 MB / 486.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04204/0.3366, allocations: 51.23 MB / 0.5254 GB, free: 8.055 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001707/0.3384, allocations: 9.438 kB / 0.5254 GB, free: 8.051 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003512/0.342, allocations: 1.182 MB / 0.5266 GB, free: 7.453 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02872/0.3707, allocations: 6.569 MB / 0.533 GB, free: 2.586 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005064/0.3758, allocations: 1.566 MB / 0.5345 GB, free: 1.375 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002342/0.3782, allocations: 1.779 MB / 0.5363 GB, free: 256 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002067/0.3784, allocations: 133.9 kB / 0.5364 GB, free: 128 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004884/0.3833, allocations: 0.568 MB / 0.5369 GB, free: 15.56 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001084/0.3844, allocations: 0.6062 MB / 0.5375 GB, free: 14.95 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.564e-05/0.3845, allocations: 28 kB / 0.5376 GB, free: 14.92 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01577/0.4002, allocations: 3.535 MB / 0.541 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002738/0.4005, allocations: 178.7 kB / 0.5412 GB, free: 11.24 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001231/0.4018, allocations: 0.6994 MB / 0.5419 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01316/0.4149, allocations: 3.288 MB / 0.5451 GB, free: 7.238 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.415, allocations: 0 / 0.5451 GB, free: 7.238 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.415, allocations: 4 kB / 0.5451 GB, free: 7.234 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.449e-05/0.415, allocations: 0 / 0.5451 GB, free: 7.234 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.002816/0.4178, allocations: 1.979 MB / 0.547 GB, free: 5.207 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.4179, allocations: 15.97 kB / 0.547 GB, free: 5.191 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002277/0.4181, allocations: 234.6 kB / 0.5473 GB, free: 4.953 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00475/0.4229, allocations: 1.306 MB / 0.5485 GB, free: 3.645 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006627/0.4236, allocations: 471 kB / 0.549 GB, free: 3.145 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.363e-05/0.4237, allocations: 82.5 kB / 0.5491 GB, free: 3.062 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.4238, allocations: 104.5 kB / 0.5492 GB, free: 2.961 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002727/0.4265, allocations: 1.861 MB / 0.551 GB, free: 1.043 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.308e-05/0.4266, allocations: 3.984 kB / 0.551 GB, free: 1.039 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.507e-05/0.4266, allocations: 51 kB / 0.551 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.661e-05/0.4267, allocations: 83.92 kB / 0.5511 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002425/0.4292, allocations: 1.732 MB / 0.5528 GB, free: 15.18 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006832/0.436, allocations: 8.533 MB / 0.5611 GB, free: 5.629 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001481/0.4375, allocations: 1.002 MB / 0.5621 GB, free: 4.555 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009134/0.4384, allocations: 0.8175 MB / 0.5629 GB, free: 3.711 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003098/0.4415, allocations: 3.552 MB / 0.5664 GB, free: 15.79 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.4416, allocations: 42.5 kB / 0.5664 GB, free: 15.74 MB / 446.1 MB Notification: Performance of pre-optimization done (n=253): time 2.024e-06/0.4416, allocations: 0 / 0.5664 GB, free: 15.74 MB / 446.1 MB Notification: Performance of matching and sorting (n=253): time 0.003111/0.4447, allocations: 1.745 MB / 0.5681 GB, free: 14 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.4448, allocations: 239.3 kB / 0.5684 GB, free: 13.71 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001756/0.445, allocations: 186.3 kB / 0.5685 GB, free: 13.51 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.772e-05/0.4451, allocations: 33.64 kB / 0.5686 GB, free: 13.47 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002262/0.4453, allocations: 433.7 kB / 0.569 GB, free: 13.04 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005431/0.4458, allocations: 0.7808 MB / 0.5697 GB, free: 12.25 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000235/0.4461, allocations: 198.2 kB / 0.5699 GB, free: 12.05 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.4462, allocations: 309.9 kB / 0.5702 GB, free: 11.74 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005542/0.4468, allocations: 374.5 kB / 0.5706 GB, free: 11.37 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007881/0.4475, allocations: 0.6321 MB / 0.5712 GB, free: 10.64 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00146/0.449, allocations: 1.187 MB / 0.5724 GB, free: 9.367 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.449, allocations: 0 / 0.5724 GB, free: 9.367 MB / 446.1 MB Notification: Performance of matching and sorting (n=274) (initialization): time 0.00176/0.4508, allocations: 1.206 MB / 0.5735 GB, free: 8.16 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.4508, allocations: 4 kB / 0.5735 GB, free: 8.156 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.4508, allocations: 8 kB / 0.5735 GB, free: 8.148 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.8e-05/0.4509, allocations: 8 kB / 0.5736 GB, free: 8.141 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000291/0.4512, allocations: 79.84 kB / 0.5736 GB, free: 8.062 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.869e-05/0.4512, allocations: 19.91 kB / 0.5736 GB, free: 8.043 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000679/0.4519, allocations: 170.4 kB / 0.5738 GB, free: 7.875 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-05/0.4519, allocations: 31.98 kB / 0.5738 GB, free: 7.844 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.0003978/0.4524, allocations: 260.3 kB / 0.5741 GB, free: 7.578 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002195/0.4526, allocations: 70.91 kB / 0.5742 GB, free: 7.508 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003665/0.4562, allocations: 3.247 MB / 0.5773 GB, free: 4.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001921/0.4582, allocations: 1.758 MB / 0.579 GB, free: 2.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/0.4582, allocations: 7.938 kB / 0.5791 GB, free: 2.473 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.592e-05/0.4582, allocations: 19.89 kB / 0.5791 GB, free: 2.453 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.163/0.6213, allocations: 5.099 MB / 0.584 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.409e-05/0.6213, allocations: 4.469 kB / 0.5841 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007493/0.622, allocations: 287.6 kB / 0.5843 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.251e-05/0.6221, allocations: 9.438 kB / 0.5843 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.084e-05/0.6221, allocations: 38.19 kB / 0.5844 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.188e-05/0.6221, allocations: 20.48 kB / 0.5844 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.6221, allocations: 0 / 0.5844 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002622/0.6248, allocations: 2.908 MB / 0.5872 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003793/0.6252, allocations: 263.9 kB / 0.5875 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.798e-05/0.6252, allocations: 37.53 kB / 0.5875 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009161/0.6262, allocations: 179.7 kB / 0.5877 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/0.6263, allocations: 119.3 kB / 0.5878 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.502e-05/0.6264, allocations: 50.5 kB / 0.5879 GB, free: 136.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.77e-05/0.6264, allocations: 121.2 kB / 0.588 GB, free: 136.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6265, allocations: 0 / 0.588 GB, free: 136.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001439/0.6279, allocations: 0.5107 MB / 0.5885 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.003093/0.631, allocations: 3.868 MB / 0.5922 GB, free: 134 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002629/0.6336, allocations: 2.435 MB / 0.5946 GB, free: 132.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.6337, allocations: 2.688 kB / 0.5946 GB, free: 132.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001259/0.6349, allocations: 1.232 MB / 0.5958 GB, free: 132 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004589/0.6395, allocations: 1.003 MB / 0.5968 GB, free: 131.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009395/0.6489, allocations: 9.703 MB / 0.6063 GB, free: 125.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000831/0.6498, allocations: 1.473 MB / 0.6077 GB, free: 124.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001066/0.6509, allocations: 275.8 kB / 0.608 GB, free: 124.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006066/0.6515, allocations: 0.7578 MB / 0.6087 GB, free: 124.3 MB / 446.1 MB Notification: Performance of SimCode: time 8.62e-07/0.6515, allocations: 0 / 0.6087 GB, free: 124.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07535/0.7269, allocations: 52.04 MB / 0.6595 GB, free: 95.57 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001711/0.7271, allocations: 235.5 kB / 0.6598 GB, free: 95.31 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.415/4.142, allocations: 4 kB / 0.6598 GB, free: 95.3 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)