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.005416/0.005416, allocations: 98.77 kB / 15.73 MB, free: 6.066 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.001414/0.001414, allocations: 196.1 kB / 16.68 MB, free: 5.973 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.488/1.488, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01587/0.01587, allocations: 2.789 MB / 293.3 MB, free: 11.97 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 67.84 kB / 405.4 MB, free: 29.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0962/0.09816, allocations: 50.23 MB / 455.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.01059/0.1088, allocations: 7.308 MB / 462.9 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 8.315e-06/0.1089, allocations: 0 / 462.9 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.081e-05/0.1089, allocations: 0 / 462.9 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.489e-05/0.109, allocations: 4 kB / 462.9 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003786/0.1093, allocations: 108.3 kB / 463 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.446e-06/0.1094, allocations: 0 / 463 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.227e-05/0.1094, allocations: 8 kB / 463.1 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.259e-05/0.1095, allocations: 0 / 463.1 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01848/0.1279, allocations: 55.3 kB / 463.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.977e-05/0.128, allocations: 4 kB / 463.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.365e-06/0.128, allocations: 0 / 463.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.879e-06/0.128, allocations: 0 / 463.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.707e-06/0.128, allocations: 3.938 kB / 463.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.061e-05/0.1281, allocations: 0 / 463.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 6.177e-05/0.1281, allocations: 0 / 463.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/0.1281, allocations: 4 kB / 463.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1281, allocations: 0 / 463.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.1282, allocations: 0 / 463.1 MB, free: 3.676 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.0003714/0.1285, allocations: 311.6 kB / 463.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/0.1286, allocations: 12.06 kB / 463.4 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.011e-05/0.1286, allocations: 30.75 kB / 463.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.331e-05/0.1287, allocations: 0.9375 kB / 463.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001556/0.1288, allocations: 164.4 kB / 463.6 MB, free: 3.074 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.1289, allocations: 4.312 kB / 463.6 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.153e-06/0.1289, allocations: 384 / 463.6 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001023/0.129, allocations: 33.64 kB / 463.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.129, allocations: 0 / 463.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.386e-06/0.129, allocations: 0 / 463.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.129, allocations: 4 kB / 463.7 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.817e-05/0.129, allocations: 0 / 463.7 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003683/0.1294, allocations: 383.5 kB / 464 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.908e-05/0.1295, allocations: 169.1 kB / 464.2 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.091e-05/0.1296, allocations: 84.14 kB / 464.3 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.672e-05/0.1296, allocations: 91.25 kB / 464.4 MB, free: 2.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.11e-05/0.1297, allocations: 105.8 kB / 464.5 MB, free: 2.137 MB / 334.1 MB Notification: Performance of pre-optimization done (n=0): time 1.042e-06/0.1297, allocations: 0 / 464.5 MB, free: 2.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=0): time 8.442e-05/0.1298, allocations: 29.69 kB / 464.5 MB, free: 2.102 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.8e-05/0.1299, allocations: 130.6 kB / 464.6 MB, free: 1.961 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.229e-05/0.13, allocations: 93.86 kB / 464.7 MB, free: 1.859 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.13, allocations: 29.83 kB / 464.8 MB, free: 1.824 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.909e-05/0.13, allocations: 84.12 kB / 464.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.125e-06/0.13, allocations: 0 / 464.8 MB, free: 1.738 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.08e-05/0.1301, allocations: 13.72 kB / 464.9 MB, free: 1.719 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.1302, allocations: 318.8 kB / 465.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.787e-06/0.1302, allocations: 0 / 465.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.869e-06/0.1303, allocations: 0 / 465.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.143e-05/0.1303, allocations: 12.92 kB / 465.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1303, allocations: 0 / 465.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.723e-05/0.1304, allocations: 33.64 kB / 465.2 MB, free: 1.344 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.1304, allocations: 6.656 kB / 465.2 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.1304, allocations: 0 / 465.2 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.1305, allocations: 0 / 465.2 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.894e-05/0.1305, allocations: 7.984 kB / 465.2 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.1305, allocations: 0 / 465.2 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.2e-05/0.1305, allocations: 3.938 kB / 465.2 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.1e-06/0.1306, allocations: 0 / 465.2 MB, free: 1.328 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 0.0001325/0.1307, allocations: 201.7 kB / 465.4 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.598e-05/0.1308, allocations: 104.9 kB / 465.5 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.53e-05/0.1308, allocations: 108 kB / 465.6 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-05/0.1309, allocations: 180.2 kB / 465.8 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.676e-05/0.131, allocations: 180.3 kB / 466 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.253e-05/0.1311, allocations: 184.2 kB / 466.2 MB, free: 352 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002917/0.1314, allocations: 401.2 kB / 466.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.103e-05/0.1314, allocations: 108.9 kB / 466.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.884e-05/0.1315, allocations: 109 kB / 466.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.277e-05/0.1316, allocations: 176.3 kB / 466.9 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.36e-05/0.1317, allocations: 180.2 kB / 467.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.591e-05/0.1318, allocations: 188.3 kB / 467.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.259e-05/0.1319, allocations: 184.2 kB / 467.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001644/0.132, allocations: 311.6 kB / 467.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.407e-05/0.1322, allocations: 182.1 kB / 468 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.258e-05/0.1322, allocations: 184.2 kB / 468.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.341e-05/0.1323, allocations: 104.9 kB / 468.2 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.483e-05/0.1324, allocations: 180.3 kB / 468.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.963e-05/0.1325, allocations: 104.9 kB / 468.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.432e-05/0.1325, allocations: 75.28 kB / 468.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1325, allocations: 0 / 468.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002449/0.1328, allocations: 4 kB / 468.6 MB, free: 13.73 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.0004432/0.1332, allocations: 0.801 MB / 469.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.375e-05/0.1333, allocations: 4 kB / 469.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1333, allocations: 0 / 469.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.813e-06/0.1333, allocations: 7.938 kB / 469.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003806/0.1337, allocations: 455.8 kB / 469.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003833/0.1341, allocations: 182.5 kB / 470 MB, free: 12.22 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.1344, allocations: 0.669 MB / 470.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.022e-05/0.1344, allocations: 0 / 470.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.15e-05/0.1345, allocations: 11.44 kB / 470.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1345, allocations: 0 / 470.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02344/0.1579, allocations: 0.8808 MB / 471.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.276/8.434, allocations: 12.78 kB / 471.6 MB, free: 10.69 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)