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.00553/0.00553, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001227/0.001227, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.519/1.519, 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.01464/0.01464, allocations: 2.775 MB / 293.3 MB, free: 11.95 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 59.89 kB / 405.4 MB, free: 29.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09311/0.09441, allocations: 50.23 MB / 455.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.009236/0.1037, allocations: 7.526 MB / 463.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 4.972e-05/0.1038, allocations: 27.89 kB / 463.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.353e-05/0.1038, allocations: 0 / 463.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002531/0.1041, allocations: 83.56 kB / 463.3 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 3.623e-05/0.1041, allocations: 23.78 kB / 463.3 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001891/0.1043, allocations: 43.69 kB / 463.3 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.188e-05/0.1044, allocations: 47.61 kB / 463.4 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.077e-05/0.1045, allocations: 0 / 463.4 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.586e-05/0.1045, allocations: 11.94 kB / 463.4 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.778e-05/0.1046, allocations: 11.94 kB / 463.4 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.738e-06/0.1046, allocations: 0 / 463.4 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002028/0.1048, allocations: 40 kB / 463.4 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.506e-05/0.1048, allocations: 11.94 kB / 463.4 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.503e-05/0.1049, allocations: 15.92 kB / 463.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001918/0.105, allocations: 63.69 kB / 463.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1051, allocations: 0 / 463.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1051, allocations: 0 / 463.5 MB, free: 3.344 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.1051, allocations: 0 / 463.5 MB, free: 3.344 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003801/0.1055, allocations: 347.3 kB / 463.9 MB, free: 2.957 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.1055, allocations: 15.89 kB / 463.9 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.524e-05/0.1056, allocations: 30.75 kB / 463.9 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.628e-05/0.1056, allocations: 4.891 kB / 463.9 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001123/0.1057, allocations: 172.4 kB / 464.1 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.31e-05/0.1058, allocations: 384 / 464.1 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.957e-06/0.1058, allocations: 384 / 464.1 MB, free: 2.691 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001329/0.1059, allocations: 53.64 kB / 464.1 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.1059, allocations: 3.938 kB / 464.1 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.1059, allocations: 3.984 kB / 464.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.05e-05/0.106, allocations: 3.984 kB / 464.1 MB, free: 2.621 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.045e-05/0.106, allocations: 24 kB / 464.2 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001693/0.1062, allocations: 173.6 kB / 464.3 MB, free: 2.379 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.644e-05/0.1063, allocations: 54.58 kB / 464.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.025e-05/0.1063, allocations: 40.88 kB / 464.4 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.1063, allocations: 3.938 kB / 464.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.302e-05/0.1064, allocations: 30.56 kB / 464.5 MB, free: 2.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.142e-06/0.1064, allocations: 0 / 464.5 MB, free: 2.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002232/0.1066, allocations: 141.4 kB / 464.6 MB, free: 2.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/0.1067, allocations: 51.41 kB / 464.7 MB, free: 2.027 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.016e-05/0.1067, allocations: 97.88 kB / 464.8 MB, free: 1.922 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/0.1067, allocations: 25.7 kB / 464.8 MB, free: 1.891 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.537e-05/0.1068, allocations: 80.14 kB / 464.9 MB, free: 1.809 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.491e-05/0.1068, allocations: 55.47 kB / 464.9 MB, free: 1.754 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.301e-05/0.1069, allocations: 17.72 kB / 464.9 MB, free: 1.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.107, allocations: 318.8 kB / 465.2 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.173e-05/0.107, allocations: 20 kB / 465.3 MB, free: 1.391 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.806e-05/0.107, allocations: 27.98 kB / 465.3 MB, free: 1.363 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.288e-05/0.1071, allocations: 72.75 kB / 465.4 MB, free: 1.289 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.1071, allocations: 0 / 465.4 MB, free: 1.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001138/0.1073, allocations: 101.6 kB / 465.5 MB, free: 1.184 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.1073, allocations: 4 kB / 465.5 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.1073, allocations: 0 / 465.5 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.1073, allocations: 4 kB / 465.5 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.264e-06/0.1073, allocations: 4 kB / 465.5 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.1073, allocations: 0 / 465.5 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.185e-05/0.1074, allocations: 3.938 kB / 465.5 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.64e-06/0.1074, allocations: 0 / 465.5 MB, free: 1.168 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: 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 7.423e-05/0.1075, allocations: 118.5 kB / 465.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.388e-05/0.1075, allocations: 11.88 kB / 465.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.262e-05/0.1075, allocations: 4.094 kB / 465.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.1075, allocations: 4 kB / 465.6 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1076, allocations: 0 / 465.6 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.1076, allocations: 0 / 465.6 MB, free: 1.027 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001073/0.1077, allocations: 169.6 kB / 465.8 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.1077, allocations: 7.938 kB / 465.8 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.71e-07/0.1077, allocations: 0 / 465.8 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1077, allocations: 4 kB / 465.8 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.1077, allocations: 0 / 465.8 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1077, allocations: 3.938 kB / 465.8 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1077, allocations: 0 / 465.8 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001304/0.1079, allocations: 124.3 kB / 465.9 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.94e-05/0.1079, allocations: 89 kB / 466 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.188e-05/0.1079, allocations: 0 / 466 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.289e-05/0.108, allocations: 3.938 kB / 466 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.091e-05/0.108, allocations: 4.031 kB / 466 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.136e-06/0.108, allocations: 3.984 kB / 466 MB, free: 0.543 MB / 334.1 MB Notification: Performance of sorting global known variables: time 2.241e-05/0.108, allocations: 75.28 kB / 466.1 MB, free: 480 kB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.108, allocations: 0 / 466.1 MB, free: 480 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002068/0.1082, allocations: 12 kB / 466.1 MB, free: 468 kB / 334.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.0007692/0.109, allocations: 0.7002 MB / 466.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000142/0.1092, allocations: 67.92 kB / 466.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1092, allocations: 0 / 466.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.518e-05/0.1092, allocations: 40.05 kB / 466.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004205/0.1096, allocations: 39.89 kB / 466.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005051/0.1102, allocations: 257.2 kB / 467.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000273/0.1104, allocations: 0.6923 MB / 467.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.942e-05/0.1105, allocations: 4 kB / 467.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.807e-05/0.1105, allocations: 11.44 kB / 467.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1105, allocations: 0 / 467.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01802/0.1285, allocations: 2.758 MB / 470.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.801/7.929, allocations: 6.75 kB / 470.7 MB, free: 11.89 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)