Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.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.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesExplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesExplicit",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.001045/0.001045, allocations: 103.4 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.001067/0.001067, allocations: 190.8 kB / 16.25 MB, free: 6.621 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.245/1.245, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1138/0.1138, allocations: 2.762 MB / 292.8 MB, free: 3.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 59.91 kB / 354 MB, free: 4.82 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07738/0.07869, allocations: 50.22 MB / 404.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit): time 0.1936/0.2724, allocations: 96.32 MB / 0.4888 GB, free: 4.094 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04247/0.3149, allocations: 58.87 MB / 0.5463 GB, free: 5.934 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001073/0.316, allocations: 4 kB / 0.5463 GB, free: 5.93 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003126/0.3191, allocations: 1.275 MB / 0.5475 GB, free: 4.648 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01774/0.3369, allocations: 6.752 MB / 0.5541 GB, free: 13.86 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007465/0.3444, allocations: 2.688 MB / 0.5568 GB, free: 11.16 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002115/0.3465, allocations: 1.735 MB / 0.5585 GB, free: 9.414 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003297/0.3469, allocations: 136.9 kB / 0.5586 GB, free: 9.281 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006391/0.3533, allocations: 0.7426 MB / 0.5593 GB, free: 8.57 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009522/0.3542, allocations: 0.5948 MB / 0.5599 GB, free: 7.973 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001478/0.3544, allocations: 76 kB / 0.56 GB, free: 7.898 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01418/0.3686, allocations: 3.813 MB / 0.5637 GB, free: 4.117 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002895/0.3689, allocations: 214.9 kB / 0.5639 GB, free: 3.906 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001163/0.3701, allocations: 0.6998 MB / 0.5646 GB, free: 3.203 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01335/0.3834, allocations: 3.807 MB / 0.5683 GB, free: 15.39 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3834, allocations: 0 / 0.5683 GB, free: 15.39 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3835, allocations: 0 / 0.5683 GB, free: 15.39 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.409e-05/0.3835, allocations: 0 / 0.5683 GB, free: 15.39 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 438 * Number of variables: 438 Notification: Performance of Generate backend data structure: time 0.003258/0.3868, allocations: 2.006 MB / 0.5703 GB, free: 13.33 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.3868, allocations: 12.03 kB / 0.5703 GB, free: 13.32 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002595/0.3871, allocations: 217.2 kB / 0.5705 GB, free: 13.1 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004907/0.392, allocations: 1.412 MB / 0.5719 GB, free: 11.68 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006738/0.3927, allocations: 0.4908 MB / 0.5723 GB, free: 11.15 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.339e-05/0.3928, allocations: 82.52 kB / 0.5724 GB, free: 11.07 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.3929, allocations: 104.6 kB / 0.5725 GB, free: 10.97 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002739/0.3957, allocations: 1.909 MB / 0.5744 GB, free: 8.996 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/0.3957, allocations: 0 / 0.5744 GB, free: 8.996 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.304e-05/0.3958, allocations: 48 kB / 0.5744 GB, free: 8.949 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7e-05/0.3959, allocations: 91.94 kB / 0.5745 GB, free: 8.859 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002477/0.3984, allocations: 1.831 MB / 0.5763 GB, free: 7.023 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1456/0.5439, allocations: 9.174 MB / 0.5853 GB, free: 137.2 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.5451, allocations: 0.7809 MB / 0.586 GB, free: 137.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006504/0.5458, allocations: 0.6636 MB / 0.5867 GB, free: 137.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001872/0.5476, allocations: 2.883 MB / 0.5895 GB, free: 134.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.558e-05/0.5477, allocations: 35.16 kB / 0.5895 GB, free: 134.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=193): time 2.424e-06/0.5477, allocations: 0 / 0.5895 GB, free: 134.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=193): time 0.002149/0.5498, allocations: 1.327 MB / 0.5908 GB, free: 134.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.582e-05/0.5499, allocations: 89.08 kB / 0.5909 GB, free: 134.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/0.55, allocations: 203.1 kB / 0.5911 GB, free: 133.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.076e-05/0.55, allocations: 32.73 kB / 0.5911 GB, free: 133.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.5502, allocations: 454.1 kB / 0.5916 GB, free: 133.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002345/0.5504, allocations: 0.6003 MB / 0.5921 GB, free: 133.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001886/0.5506, allocations: 171.9 kB / 0.5923 GB, free: 133 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.619e-05/0.5507, allocations: 306 kB / 0.5926 GB, free: 132.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003988/0.5511, allocations: 292.8 kB / 0.5929 GB, free: 132.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004945/0.5516, allocations: 0.5455 MB / 0.5934 GB, free: 132.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001022/0.5526, allocations: 0.9865 MB / 0.5944 GB, free: 131.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.5526, allocations: 2.875 kB / 0.5944 GB, free: 131.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.001279/0.5539, allocations: 0.9829 MB / 0.5953 GB, free: 131.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.5539, allocations: 10.12 kB / 0.5953 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.5539, allocations: 9.969 kB / 0.5954 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.554, allocations: 11.61 kB / 0.5954 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002571/0.5542, allocations: 84.7 kB / 0.5954 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.5542, allocations: 17.33 kB / 0.5955 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005991/0.5548, allocations: 158.4 kB / 0.5956 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.976e-05/0.5549, allocations: 29.59 kB / 0.5956 GB, free: 131 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 14 (medium2.completeBubbleDewStates.bubbleStateTwoPhase.state.phase,medium2.completeBubbleDewStates.bubbleStateOnePhase.state.phase,medium2.completeBubbleDewStates.dewStateTwoPhase.state.phase,medium2.completeBubbleDewStates.dewStateOnePhase.state.phase,medium2.completeState.state.phase,medium2.baseProperties.phaseOutput,medium1.completeBubbleDewStates.bubbleStateTwoPhase.state.phase,medium1.completeBubbleDewStates.bubbleStateOnePhase.state.phase,medium1.completeBubbleDewStates.dewStateTwoPhase.state.phase,medium1.completeBubbleDewStates.dewStateOnePhase.state.phase,medium1.completeState.state.phase,medium1.baseProperties.phaseOutput,medium2.baseProperties.phaseInput,medium1.baseProperties.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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.0003499/0.5553, allocations: 301.2 kB / 0.5959 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.5554, allocations: 64.42 kB / 0.596 GB, free: 130.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002362/0.5577, allocations: 2.744 MB / 0.5987 GB, free: 129.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00199/0.5597, allocations: 2.261 MB / 0.6009 GB, free: 128.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.5598, allocations: 0 / 0.6009 GB, free: 128.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.529e-05/0.5598, allocations: 13.2 kB / 0.6009 GB, free: 128.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005103/0.5649, allocations: 5.457 MB / 0.6062 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.5649, allocations: 0 / 0.6062 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007432/0.5656, allocations: 303.3 kB / 0.6065 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.358e-06/0.5657, allocations: 12.28 kB / 0.6065 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.663e-05/0.5657, allocations: 33.78 kB / 0.6066 GB, free: 125.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.725e-06/0.5657, allocations: 6.188 kB / 0.6066 GB, free: 125.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.5657, allocations: 7.438 kB / 0.6066 GB, free: 125.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002013/0.5678, allocations: 2.134 MB / 0.6086 GB, free: 124.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002171/0.568, allocations: 243.1 kB / 0.6089 GB, free: 124.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.971e-05/0.5681, allocations: 37.83 kB / 0.6089 GB, free: 124.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000732/0.5688, allocations: 191.6 kB / 0.6091 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.5689, allocations: 116.2 kB / 0.6092 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.404e-05/0.569, allocations: 46.19 kB / 0.6093 GB, free: 124.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.013e-05/0.5691, allocations: 133.7 kB / 0.6094 GB, free: 124.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5691, allocations: 0 / 0.6094 GB, free: 124.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001085/0.5702, allocations: 0.5044 MB / 0.6099 GB, free: 124.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 22 (medium1.completeState.state.phase,medium1.completeBubbleDewStates.bubbleStateTwoPhase.state.phase,medium1.completeBubbleDewStates.bubbleStateOnePhase.state.phase,medium1.completeBubbleDewStates.dewStateTwoPhase.state.phase,medium1.completeBubbleDewStates.dewStateOnePhase.state.phase,$cse7.phase,$cse8.phase,$cse9.phase,$cse10.phase,$cse12.phase,medium1.baseProperties.phaseOutput,medium2.completeState.state.phase,medium2.completeBubbleDewStates.dewStateTwoPhase.state.phase,medium2.completeBubbleDewStates.dewStateOnePhase.state.phase,medium2.completeBubbleDewStates.bubbleStateTwoPhase.state.phase,medium2.completeBubbleDewStates.bubbleStateOnePhase.state.phase,$cse1.phase,$cse2.phase,$cse3.phase,$cse4.phase,$cse6.phase,medium2.baseProperties.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (205): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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.002715/0.5729, allocations: 3.115 MB / 0.6129 GB, free: 122.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0044/0.5773, allocations: 2.379 MB / 0.6152 GB, free: 120.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.5773, allocations: 0 / 0.6152 GB, free: 120.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000928/0.5783, allocations: 1.043 MB / 0.6163 GB, free: 120.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003683/0.5819, allocations: 0.9928 MB / 0.6172 GB, free: 120.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007746/0.5897, allocations: 8.218 MB / 0.6253 GB, free: 114.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007966/0.5905, allocations: 1.409 MB / 0.6266 GB, free: 114.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009385/0.5915, allocations: 250.4 kB / 0.6269 GB, free: 114.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005889/0.5921, allocations: 0.7276 MB / 0.6276 GB, free: 113.6 MB / 446.1 MB Notification: Performance of SimCode: time 4.51e-07/0.5921, allocations: 0 / 0.6276 GB, free: 113.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.068/2.66, allocations: 52.22 MB / 0.6786 GB, free: 77.05 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001316/2.661, allocations: 248 kB / 0.6788 GB, free: 76.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.359/6.02, allocations: 0 / 0.6788 GB, free: 76.79 MB / 446.1 MB (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesExplicit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesExplicit.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesExplicit.pipe 2>&1)