Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestState.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.TestState,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestState,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestState",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.001105/0.001105, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 192.6 kB / 16.53 MB, free: 6.391 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.311/1.311, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1065/0.1065, allocations: 2.764 MB / 293.2 MB, free: 3.582 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 71.89 kB / 354.5 MB, free: 4.305 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07956/0.0808, allocations: 50.23 MB / 404.7 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.007997/0.08884, allocations: 7.516 MB / 412.3 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 3.81e-05/0.0889, allocations: 39.81 kB / 412.3 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.765e-05/0.08892, allocations: 0 / 412.3 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002232/0.08915, allocations: 75.58 kB / 412.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.942e-05/0.0892, allocations: 23.83 kB / 412.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001362/0.08935, allocations: 35.69 kB / 412.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.398e-05/0.08942, allocations: 47.69 kB / 412.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.113e-05/0.08947, allocations: 4 kB / 412.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.304e-05/0.0895, allocations: 15.92 kB / 412.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.183e-05/0.08954, allocations: 11.94 kB / 412.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.939e-06/0.08956, allocations: 0 / 412.5 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001817/0.08974, allocations: 39.94 kB / 412.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.196e-05/0.08976, allocations: 7.938 kB / 412.6 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.086e-05/0.0898, allocations: 15.88 kB / 412.6 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001543/0.08996, allocations: 63.8 kB / 412.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.08997, allocations: 4 kB / 412.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.08998, allocations: 0 / 412.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.08999, allocations: 0 / 412.6 MB, free: 10.09 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0002995/0.09029, allocations: 339.4 kB / 413 MB, free: 9.711 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.09033, allocations: 12.03 kB / 413 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.444e-05/0.09038, allocations: 42.73 kB / 413 MB, free: 9.648 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.182e-05/0.09041, allocations: 4.844 kB / 413 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.371e-05/0.0905, allocations: 164.4 kB / 413.2 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.368e-06/0.09052, allocations: 384 / 413.2 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.531e-06/0.09053, allocations: 384 / 413.2 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001183/0.09065, allocations: 73.48 kB / 413.3 MB, free: 9.367 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-06/0.09066, allocations: 0 / 413.3 MB, free: 9.367 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.353e-06/0.09068, allocations: 0 / 413.3 MB, free: 9.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.09069, allocations: 4 kB / 413.3 MB, free: 9.363 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.564e-05/0.09073, allocations: 23.98 kB / 413.3 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001595/0.09089, allocations: 169.6 kB / 413.5 MB, free: 9.125 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.068e-05/0.09096, allocations: 54.56 kB / 413.5 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.105e-05/0.09101, allocations: 44.88 kB / 413.6 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.361e-05/0.09104, allocations: 7.875 kB / 413.6 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.09106, allocations: 34.56 kB / 413.6 MB, free: 8.965 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.163e-06/0.09107, allocations: 0 / 413.6 MB, free: 8.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0001943/0.09127, allocations: 128.5 kB / 413.7 MB, free: 8.836 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.234e-05/0.09131, allocations: 55.41 kB / 413.8 MB, free: 8.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.14e-05/0.09136, allocations: 89.86 kB / 413.9 MB, free: 8.672 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.034e-05/0.09137, allocations: 29.64 kB / 413.9 MB, free: 8.637 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.458e-05/0.0914, allocations: 88.17 kB / 414 MB, free: 8.547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.478e-05/0.09145, allocations: 39.36 kB / 414 MB, free: 8.508 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.856e-05/0.0915, allocations: 21.7 kB / 414 MB, free: 8.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.0916, allocations: 310.8 kB / 414.3 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.022e-05/0.09164, allocations: 31.92 kB / 414.4 MB, free: 8.137 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.624e-05/0.09167, allocations: 27.94 kB / 414.4 MB, free: 8.109 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.926e-05/0.09174, allocations: 68.83 kB / 414.5 MB, free: 8.039 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.09175, allocations: 0 / 414.5 MB, free: 8.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001115/0.09187, allocations: 99.27 kB / 414.6 MB, free: 7.938 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.09189, allocations: 10.03 kB / 414.6 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.0919, allocations: 4 kB / 414.6 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.09191, allocations: 0 / 414.6 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.09192, allocations: 0 / 414.6 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.617e-06/0.09193, allocations: 0 / 414.6 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.535e-05/0.09196, allocations: 3.938 kB / 414.6 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.889e-06/0.09197, allocations: 0 / 414.6 MB, free: 7.922 MB / 350.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: 1 (state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 6.754e-05/0.09204, allocations: 109.8 kB / 414.7 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.172e-05/0.09206, allocations: 7.844 kB / 414.7 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.476e-05/0.09209, allocations: 12.03 kB / 414.7 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/0.0921, allocations: 11.98 kB / 414.7 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.09211, allocations: 0 / 414.7 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-06/0.09212, allocations: 0 / 414.7 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001064/0.09223, allocations: 173.5 kB / 414.9 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.09224, allocations: 3.938 kB / 414.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.09224, allocations: 0 / 414.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.09225, allocations: 0 / 414.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.879e-06/0.09226, allocations: 0 / 414.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.09226, allocations: 7.984 kB / 414.9 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.09227, allocations: 4 kB / 414.9 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001265/0.0924, allocations: 117 kB / 415 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.401e-05/0.09246, allocations: 88.95 kB / 415.1 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.986e-06/0.09247, allocations: 0 / 415.1 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.835e-05/0.09249, allocations: 0 / 415.1 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.037e-06/0.09251, allocations: 0 / 415.1 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-06/0.09251, allocations: 0 / 415.1 MB, free: 7.305 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.389e-05/0.09254, allocations: 75.28 kB / 415.2 MB, free: 7.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.453e-06/0.09255, allocations: 4.031 kB / 415.2 MB, free: 7.227 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001987/0.09275, allocations: 23.94 kB / 415.2 MB, free: 7.203 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: 1 (state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0005347/0.09329, allocations: 0.6901 MB / 415.9 MB, free: 6.488 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001083/0.09341, allocations: 63.97 kB / 416 MB, free: 6.426 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.09342, allocations: 0 / 416 MB, free: 6.426 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.536e-05/0.09346, allocations: 39.94 kB / 416 MB, free: 6.387 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003576/0.09383, allocations: 42.2 kB / 416 MB, free: 6.348 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004418/0.09428, allocations: 257.1 kB / 416.3 MB, free: 6.055 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002114/0.0945, allocations: 0.6846 MB / 417 MB, free: 5.344 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.978e-05/0.09452, allocations: 0 / 417 MB, free: 5.344 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.147e-05/0.09455, allocations: 19.36 kB / 417 MB, free: 5.324 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.09456, allocations: 0 / 417 MB, free: 5.324 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.017/0.1116, allocations: 2.732 MB / 419.7 MB, free: 2.672 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.241/7.352, allocations: 10.66 kB / 419.7 MB, free: 2.664 MB / 350.1 MB (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestState.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.TestMedium.TestState_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_TestState.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe 2>&1)