Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.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.TestConstants,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestConstants,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants",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.008229/0.00823, allocations: 100.5 kB / 15.73 MB, free: 6.027 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.002309/0.002309, allocations: 199.6 kB / 16.68 MB, free: 5.938 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.471/1.471, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01221/0.01221, allocations: 2.779 MB / 293.3 MB, free: 11.95 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001709, allocations: 72.09 kB / 405.4 MB, free: 29.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08277/0.0845, allocations: 50.23 MB / 455.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.009603/0.09414, allocations: 7.304 MB / 462.9 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 8.245e-06/0.09418, allocations: 0 / 462.9 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.353e-05/0.09421, allocations: 0 / 462.9 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.672e-05/0.09423, allocations: 0 / 462.9 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004229/0.09472, allocations: 112.4 kB / 463 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.238e-06/0.09474, allocations: 3.938 kB / 463 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.984e-05/0.0948, allocations: 11.98 kB / 463.1 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.51e-05/0.09485, allocations: 0 / 463.1 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.07889/0.1737, allocations: 39.52 kB / 463.1 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.83e-05/0.1738, allocations: 3.938 kB / 463.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.676e-06/0.1738, allocations: 3.938 kB / 463.1 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.88e-06/0.1738, allocations: 0 / 463.1 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.544e-06/0.1738, allocations: 0 / 463.1 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.053e-05/0.1739, allocations: 4 kB / 463.1 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 5.503e-05/0.1739, allocations: 3.984 kB / 463.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.227e-06/0.1739, allocations: 0 / 463.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1739, allocations: 0 / 463.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.411e-06/0.1739, allocations: 4 kB / 463.1 MB, free: 3.777 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002648/0.1742, allocations: 311.6 kB / 463.4 MB, free: 3.426 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.1743, allocations: 8.031 kB / 463.4 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.376e-05/0.1743, allocations: 34.75 kB / 463.5 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.106e-05/0.1743, allocations: 0.9375 kB / 463.5 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001039/0.1744, allocations: 172.3 kB / 463.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.034e-05/0.1745, allocations: 384 / 463.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.82e-06/0.1745, allocations: 384 / 463.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.172e-05/0.1746, allocations: 37.58 kB / 463.7 MB, free: 3.125 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.1746, allocations: 4 kB / 463.7 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.214e-06/0.1746, allocations: 0 / 463.7 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1746, allocations: 0 / 463.7 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.578e-05/0.1746, allocations: 0 / 463.7 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002898/0.1749, allocations: 383.5 kB / 464 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.462e-05/0.175, allocations: 169.1 kB / 464.2 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.589e-05/0.175, allocations: 92.08 kB / 464.3 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.1751, allocations: 75.28 kB / 464.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.752e-05/0.1751, allocations: 109.8 kB / 464.5 MB, free: 2.234 MB / 334.1 MB Notification: Performance of pre-optimization done (n=0): time 8.92e-07/0.1751, allocations: 0 / 464.5 MB, free: 2.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=0): time 6.287e-05/0.1752, allocations: 29.73 kB / 464.5 MB, free: 2.199 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.127e-05/0.1753, allocations: 130.7 kB / 464.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.921e-05/0.1754, allocations: 89.86 kB / 464.7 MB, free: 1.961 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.156e-05/0.1754, allocations: 25.7 kB / 464.7 MB, free: 1.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.955e-05/0.1754, allocations: 80.14 kB / 464.8 MB, free: 1.848 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.635e-06/0.1754, allocations: 4 kB / 464.8 MB, free: 1.844 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.823e-05/0.1755, allocations: 17.7 kB / 464.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.1756, allocations: 314.8 kB / 465.2 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.377e-06/0.1756, allocations: 3.938 kB / 465.2 MB, free: 1.5 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.7e-06/0.1756, allocations: 8.125 kB / 465.2 MB, free: 1.492 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.129e-05/0.1756, allocations: 4.859 kB / 465.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.1756, allocations: 0 / 465.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.265e-05/0.1757, allocations: 29.7 kB / 465.2 MB, free: 1.449 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.1757, allocations: 8 kB / 465.2 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.1758, allocations: 0 / 465.2 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.1758, allocations: 0 / 465.2 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.468e-05/0.1758, allocations: 7.922 kB / 465.2 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.273e-06/0.1758, allocations: 4.094 kB / 465.2 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.802e-05/0.1759, allocations: 12 kB / 465.2 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.52e-06/0.1759, allocations: 3.938 kB / 465.2 MB, free: 1.414 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 9.275e-05/0.176, allocations: 189.7 kB / 465.4 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.544e-05/0.176, allocations: 104.9 kB / 465.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.059e-05/0.1761, allocations: 108.1 kB / 465.6 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.066e-05/0.1762, allocations: 180.2 kB / 465.8 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-05/0.1763, allocations: 184.2 kB / 466 MB, free: 0.625 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.396e-05/0.1763, allocations: 184.2 kB / 466.2 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002557/0.1766, allocations: 401.2 kB / 466.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.005e-05/0.1766, allocations: 105 kB / 466.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.402e-05/0.1767, allocations: 104.9 kB / 466.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.925e-05/0.1768, allocations: 184.3 kB / 466.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.095e-05/0.1768, allocations: 184.2 kB / 467.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.642e-05/0.1769, allocations: 180.3 kB / 467.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.964e-05/0.177, allocations: 176.3 kB / 467.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001356/0.1771, allocations: 315.7 kB / 467.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.294e-05/0.1772, allocations: 186 kB / 468 MB, free: 14.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.884e-05/0.1773, allocations: 180.3 kB / 468.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.895e-05/0.1774, allocations: 105 kB / 468.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.131e-05/0.1774, allocations: 180.2 kB / 468.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.144e-05/0.1775, allocations: 101 kB / 468.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.89e-05/0.1775, allocations: 83.28 kB / 468.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1775, allocations: 0 / 468.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002367/0.1778, allocations: 0 / 468.6 MB, free: 13.83 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0003904/0.1782, allocations: 0.8047 MB / 469.4 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.318e-05/0.1782, allocations: 8.094 kB / 469.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1782, allocations: 0 / 469.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.934e-06/0.1783, allocations: 0 / 469.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003709/0.1786, allocations: 462 kB / 469.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000389/0.179, allocations: 182.5 kB / 470 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.1793, allocations: 0.669 MB / 470.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.756e-05/0.1793, allocations: 4.062 kB / 470.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.977e-05/0.1793, allocations: 7.438 kB / 470.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1794, allocations: 0 / 470.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01746/0.1968, allocations: 0.8851 MB / 471.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.719/7.915, allocations: 12.72 kB / 471.6 MB, free: 10.78 MB / 350.1 MB (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe 2>&1)