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.00454/0.004541, allocations: 99.44 kB / 15.73 MB, free: 6.008 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.001025/0.001025, allocations: 192.3 kB / 16.67 MB, free: 5.926 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.402/1.402, 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.01602/0.01602, allocations: 2.773 MB / 293.3 MB, free: 11.96 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 69.55 kB / 405.4 MB, free: 29.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08158/0.08277, allocations: 50.24 MB / 455.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.008015/0.09082, allocations: 7.3 MB / 462.9 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 8.827e-06/0.09086, allocations: 3.984 kB / 462.9 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.905e-05/0.09089, allocations: 0 / 462.9 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.564e-05/0.09094, allocations: 0 / 462.9 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000346/0.09129, allocations: 112.3 kB / 463 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.797e-06/0.0913, allocations: 0 / 463 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.142e-05/0.09135, allocations: 4 kB / 463 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.716e-05/0.0914, allocations: 0 / 463 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01722/0.1086, allocations: 47.2 kB / 463.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.818e-05/0.1087, allocations: 7.938 kB / 463.1 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.884e-06/0.1087, allocations: 0 / 463.1 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.108e-06/0.1087, allocations: 0 / 463.1 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.975e-06/0.1087, allocations: 0 / 463.1 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 1.706e-05/0.1087, allocations: 4 kB / 463.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 5.626e-05/0.1088, allocations: 0 / 463.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.1088, allocations: 4 kB / 463.1 MB, free: 3.777 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1088, allocations: 0 / 463.1 MB, free: 3.777 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.1088, allocations: 0 / 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.0002805/0.1091, allocations: 307.6 kB / 463.4 MB, free: 3.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.1092, allocations: 16.02 kB / 463.4 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.435e-05/0.1092, allocations: 34.75 kB / 463.5 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.985e-05/0.1092, allocations: 0.9375 kB / 463.5 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000104/0.1093, allocations: 168.3 kB / 463.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.1094, allocations: 384 / 463.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.418e-06/0.1094, allocations: 384 / 463.6 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.735e-05/0.1095, allocations: 29.64 kB / 463.7 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.1095, allocations: 4 kB / 463.7 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.823e-06/0.1095, allocations: 0 / 463.7 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.1095, allocations: 0 / 463.7 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.858e-05/0.1095, allocations: 7.938 kB / 463.7 MB, free: 3.121 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003013/0.1098, allocations: 383.5 kB / 464 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.811e-05/0.1099, allocations: 173.1 kB / 464.2 MB, free: 2.516 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.247e-05/0.11, allocations: 84.14 kB / 464.3 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.364e-05/0.11, allocations: 79.28 kB / 464.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4e-05/0.1101, allocations: 105.8 kB / 464.5 MB, free: 2.238 MB / 334.1 MB Notification: Performance of pre-optimization done (n=0): time 9.92e-07/0.1101, allocations: 3.938 kB / 464.5 MB, free: 2.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=0): time 7.174e-05/0.1101, allocations: 29.73 kB / 464.5 MB, free: 2.199 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.968e-05/0.1102, allocations: 130.6 kB / 464.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.47e-05/0.1103, allocations: 93.84 kB / 464.7 MB, free: 1.957 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.1103, allocations: 25.7 kB / 464.8 MB, free: 1.926 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.474e-05/0.1104, allocations: 88.27 kB / 464.8 MB, free: 1.836 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.625e-06/0.1104, allocations: 4 kB / 464.8 MB, free: 1.832 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.616e-05/0.1104, allocations: 9.719 kB / 464.8 MB, free: 1.816 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.628e-05/0.1105, allocations: 314.8 kB / 465.2 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.001e-05/0.1105, allocations: 0 / 465.2 MB, free: 1.5 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.866e-06/0.1105, allocations: 4 kB / 465.2 MB, free: 1.496 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.918e-05/0.1106, allocations: 4.859 kB / 465.2 MB, free: 1.488 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1106, allocations: 4.062 kB / 465.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.934e-05/0.1107, allocations: 41.62 kB / 465.2 MB, free: 1.438 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.1107, allocations: 10.66 kB / 465.2 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.1107, allocations: 0 / 465.2 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.1107, allocations: 0 / 465.2 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.783e-05/0.1108, allocations: 0 / 465.2 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.1108, allocations: 4 kB / 465.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.243e-05/0.1108, allocations: 0 / 465.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.118e-06/0.1108, allocations: 0 / 465.2 MB, free: 1.426 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 8.307e-05/0.1109, allocations: 193.7 kB / 465.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.371e-05/0.111, allocations: 104.9 kB / 465.5 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.434e-05/0.111, allocations: 116 kB / 465.6 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.164e-05/0.1111, allocations: 180.3 kB / 465.8 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.268e-05/0.1112, allocations: 180.3 kB / 466 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.494e-05/0.1112, allocations: 180.2 kB / 466.2 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002305/0.1115, allocations: 409.2 kB / 466.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.103e-05/0.1115, allocations: 104.9 kB / 466.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.132e-05/0.1116, allocations: 101 kB / 466.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.27e-05/0.1116, allocations: 184.3 kB / 466.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.197e-05/0.1117, allocations: 180.2 kB / 467.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.729e-05/0.1118, allocations: 188.2 kB / 467.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.117e-05/0.1118, allocations: 180.2 kB / 467.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001337/0.112, allocations: 307.7 kB / 467.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.234e-05/0.112, allocations: 182.1 kB / 468 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.929e-05/0.1121, allocations: 188.1 kB / 468.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.954e-05/0.1122, allocations: 108.9 kB / 468.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.123e-05/0.1123, allocations: 176.3 kB / 468.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.293e-05/0.1123, allocations: 104.9 kB / 468.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.206e-05/0.1123, allocations: 83.28 kB / 468.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1124, allocations: 0 / 468.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002159/0.1126, allocations: 0 / 468.6 MB, free: 13.82 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.0003674/0.1129, allocations: 0.801 MB / 469.4 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.802e-05/0.113, allocations: 4 kB / 469.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.113, allocations: 3.938 kB / 469.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.763e-06/0.113, 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.0003342/0.1134, allocations: 459.8 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.0003476/0.1137, allocations: 186.5 kB / 470 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002417/0.114, allocations: 0.669 MB / 470.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.894e-05/0.114, allocations: 0 / 470.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.001e-05/0.114, allocations: 7.438 kB / 470.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.114, allocations: 0 / 470.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01694/0.131, allocations: 0.8845 MB / 471.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.677/7.808, allocations: 10.97 kB / 471.6 MB, free: 10.79 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)