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.0007369/0.000737, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.00441/0.00441, allocations: 170.9 kB / 16.27 MB, free: 6.648 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.304/1.304, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1386/0.1386, allocations: 2.785 MB / 294.2 MB, free: 4.316 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003941/0.000394, allocations: 8 kB / 356.3 MB, free: 3.879 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1175, allocations: 51.26 MB / 407.6 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestStatesSat): time 0.2324/0.35, allocations: 81.2 MB / 488.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04295/0.393, allocations: 50.41 MB / 0.5265 GB, free: 8.469 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001421/0.3945, allocations: 5.344 kB / 0.5265 GB, free: 8.469 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003231/0.3977, allocations: 1.185 MB / 0.5277 GB, free: 7.867 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.022/0.4197, allocations: 6.571 MB / 0.5341 GB, free: 3.711 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006138/0.4259, allocations: 1.565 MB / 0.5356 GB, free: 2.504 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002821/0.4287, allocations: 1.785 MB / 0.5374 GB, free: 1.477 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002092/0.4289, allocations: 129.5 kB / 0.5375 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004716/0.4337, allocations: 0.561 MB / 0.5381 GB, free: 1.172 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001076/0.4347, allocations: 0.6096 MB / 0.5387 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.226e-05/0.4348, allocations: 27.34 kB / 0.5387 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01689/0.4517, allocations: 3.534 MB / 0.5421 GB, free: 13.36 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003191/0.452, allocations: 178.8 kB / 0.5423 GB, free: 13.18 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001202/0.4533, allocations: 0.7284 MB / 0.543 GB, free: 12.44 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01669/0.47, allocations: 3.253 MB / 0.5462 GB, free: 9.18 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.47, allocations: 0 / 0.5462 GB, free: 9.18 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.716e-06/0.47, allocations: 0 / 0.5462 GB, free: 9.18 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.644e-05/0.47, allocations: 0 / 0.5462 GB, free: 9.18 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.002715/0.4727, allocations: 1.776 MB / 0.5479 GB, free: 7.355 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.818e-05/0.4728, allocations: 8.031 kB / 0.5479 GB, free: 7.348 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002678/0.4731, allocations: 234.6 kB / 0.5482 GB, free: 7.109 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004762/0.4779, allocations: 1.31 MB / 0.5494 GB, free: 5.797 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007121/0.4786, allocations: 474.3 kB / 0.5499 GB, free: 5.293 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.817e-05/0.4787, allocations: 82.5 kB / 0.55 GB, free: 5.211 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001226/0.4788, allocations: 104.6 kB / 0.5501 GB, free: 5.109 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002704/0.4815, allocations: 1.865 MB / 0.5519 GB, free: 3.188 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.796e-05/0.4816, allocations: 3.938 kB / 0.5519 GB, free: 3.184 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.099e-05/0.4817, allocations: 51.98 kB / 0.5519 GB, free: 3.133 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.094e-05/0.4817, allocations: 87.91 kB / 0.552 GB, free: 3.047 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002494/0.4842, allocations: 1.74 MB / 0.5537 GB, free: 1.301 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008137/0.4924, allocations: 8.542 MB / 0.5621 GB, free: 7.746 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001576/0.494, allocations: 1.002 MB / 0.563 GB, free: 6.672 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001008/0.495, allocations: 0.8215 MB / 0.5638 GB, free: 5.824 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004344/0.4994, allocations: 3.555 MB / 0.5673 GB, free: 1.898 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.299e-05/0.4995, allocations: 42.55 kB / 0.5674 GB, free: 1.848 MB / 430.1 MB Notification: Performance of pre-optimization done (n=253): time 2.645e-06/0.4995, allocations: 0 / 0.5674 GB, free: 1.848 MB / 430.1 MB Notification: Performance of matching and sorting (n=253): time 0.003491/0.503, allocations: 1.756 MB / 0.5691 GB, free: 100 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001333/0.5031, allocations: 251.6 kB / 0.5693 GB, free: 15.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002381/0.5034, allocations: 182.4 kB / 0.5695 GB, free: 15.61 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.232e-05/0.5034, allocations: 29.7 kB / 0.5695 GB, free: 15.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002724/0.5037, allocations: 425.4 kB / 0.5699 GB, free: 15.14 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005831/0.5043, allocations: 0.7847 MB / 0.5707 GB, free: 14.35 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001637/0.5044, allocations: 137.9 kB / 0.5708 GB, free: 14.21 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.5046, allocations: 306 kB / 0.5711 GB, free: 13.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005907/0.5052, allocations: 386.4 kB / 0.5715 GB, free: 13.52 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007767/0.5059, allocations: 0.6321 MB / 0.5721 GB, free: 12.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00156/0.5075, allocations: 1.214 MB / 0.5733 GB, free: 11.49 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.5075, allocations: 0 / 0.5733 GB, free: 11.49 MB / 446.1 MB Notification: Performance of matching and sorting (n=274) (initialization): time 0.001825/0.5094, allocations: 1.196 MB / 0.5744 GB, free: 10.29 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/0.5094, allocations: 11.98 kB / 0.5745 GB, free: 10.28 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.5094, allocations: 8 kB / 0.5745 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.5094, allocations: 8 kB / 0.5745 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002885/0.5097, allocations: 76.72 kB / 0.5745 GB, free: 10.19 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.702e-05/0.5098, allocations: 23.86 kB / 0.5746 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007457/0.5105, allocations: 170.4 kB / 0.5747 GB, free: 10 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.939e-05/0.5106, allocations: 35.98 kB / 0.5748 GB, free: 9.965 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.000469/0.5111, allocations: 260.3 kB / 0.575 GB, free: 9.699 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002208/0.5113, allocations: 66.97 kB / 0.5751 GB, free: 9.633 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003972/0.5153, allocations: 3.259 MB / 0.5783 GB, free: 6.367 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002056/0.5173, allocations: 1.762 MB / 0.58 GB, free: 4.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/0.5174, allocations: 7.938 kB / 0.58 GB, free: 4.582 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-05/0.5174, allocations: 11.97 kB / 0.58 GB, free: 4.57 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.222/0.7394, allocations: 5.116 MB / 0.585 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.077e-05/0.7395, allocations: 3.359 kB / 0.585 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009934/0.7405, allocations: 288.7 kB / 0.5853 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.58e-05/0.7405, allocations: 6.5 kB / 0.5853 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.258e-05/0.7406, allocations: 41.16 kB / 0.5853 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.245e-05/0.7406, allocations: 14.73 kB / 0.5853 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.7406, allocations: 3.188 kB / 0.5853 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002886/0.7435, allocations: 2.915 MB / 0.5882 GB, free: 134 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003879/0.7439, allocations: 263.4 kB / 0.5884 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.593e-05/0.744, allocations: 39.5 kB / 0.5885 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/0.745, allocations: 177.1 kB / 0.5886 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/0.7451, allocations: 113.3 kB / 0.5888 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.052e-05/0.7452, allocations: 54.33 kB / 0.5888 GB, free: 133.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.946e-05/0.7453, allocations: 120.1 kB / 0.5889 GB, free: 133.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.7453, allocations: 0 / 0.5889 GB, free: 133.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001545/0.7469, allocations: 0.511 MB / 0.5894 GB, free: 133.8 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.003903/0.7508, allocations: 3.871 MB / 0.5932 GB, free: 132.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00258/0.7534, allocations: 2.454 MB / 0.5956 GB, free: 131.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.7534, allocations: 0 / 0.5956 GB, free: 131.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001219/0.7546, allocations: 1.233 MB / 0.5968 GB, free: 131.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005451/0.7601, allocations: 1.015 MB / 0.5978 GB, free: 131 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009794/0.7699, allocations: 9.774 MB / 0.6073 GB, free: 124.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009066/0.7708, allocations: 1.464 MB / 0.6088 GB, free: 124.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001097/0.7719, allocations: 263.7 kB / 0.609 GB, free: 124 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006172/0.7726, allocations: 0.7605 MB / 0.6098 GB, free: 123.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.062e-06/0.7726, allocations: 0 / 0.6098 GB, free: 123.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08721/0.8598, allocations: 51.53 MB / 0.6601 GB, free: 96.77 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001441/0.86, allocations: 230.9 kB / 0.6603 GB, free: 96.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.449/4.309, allocations: 0 / 0.6603 GB, free: 96.52 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)