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.009936/0.009936, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.002272/0.002272, allocations: 197.9 kB / 16.67 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.596/1.596, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1456/0.1456, allocations: 2.763 MB / 293.3 MB, free: 3.586 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 64.09 kB / 405.4 MB, free: 1.434 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2841, allocations: 50.24 MB / 455.6 MB, free: 20.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.006877/0.291, allocations: 7.532 MB / 463.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 3.387e-05/0.291, allocations: 30.19 kB / 463.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.966e-05/0.2911, allocations: 0 / 463.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002538/0.2914, allocations: 78.81 kB / 463.3 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.204e-05/0.2914, allocations: 22.7 kB / 463.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002058/0.2916, allocations: 47.25 kB / 463.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.439e-05/0.2917, allocations: 40.91 kB / 463.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.606e-05/0.2917, allocations: 6.062 kB / 463.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.319e-05/0.2918, allocations: 10.12 kB / 463.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.739e-05/0.2918, allocations: 13.88 kB / 463.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.591e-05/0.2918, allocations: 0 / 463.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001942/0.2921, allocations: 42.69 kB / 463.4 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.582e-05/0.2921, allocations: 14.77 kB / 463.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.823e-05/0.2921, allocations: 12.94 kB / 463.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001664/0.2923, allocations: 57.03 kB / 463.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2923, allocations: 0 / 463.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2923, allocations: 0 / 463.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.2923, allocations: 3.219 kB / 463.5 MB, free: 15.11 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.0002725/0.2926, allocations: 340.3 kB / 463.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.2926, allocations: 8.656 kB / 463.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.634e-05/0.2927, allocations: 38 kB / 463.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.109e-05/0.2927, allocations: 12.88 kB / 463.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.467e-05/0.2928, allocations: 168.3 kB / 464.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.2928, allocations: 3.562 kB / 464.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.017e-05/0.2928, allocations: 384 / 464.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001107/0.2929, allocations: 60.62 kB / 464.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.637e-06/0.2929, allocations: 0 / 464.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.494e-06/0.2929, allocations: 0 / 464.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.293, allocations: 0 / 464.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.344e-05/0.293, allocations: 27.92 kB / 464.2 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001272/0.2931, allocations: 173.2 kB / 464.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.038e-05/0.2932, allocations: 62.17 kB / 464.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.306e-05/0.2932, allocations: 40.19 kB / 464.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.75e-05/0.2933, allocations: 10.84 kB / 464.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.75e-05/0.2933, allocations: 34.56 kB / 464.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 9.32e-07/0.2933, allocations: 0 / 464.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0001972/0.2935, allocations: 127.6 kB / 464.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.271e-05/0.2935, allocations: 63.38 kB / 464.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.115e-05/0.2936, allocations: 94.36 kB / 464.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.021e-06/0.2936, allocations: 25.7 kB / 464.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.858e-06/0.2936, allocations: 80.14 kB / 464.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.802e-05/0.2936, allocations: 50.28 kB / 464.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.119e-05/0.2937, allocations: 21.72 kB / 464.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.929e-05/0.2937, allocations: 312.9 kB / 465.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.905e-05/0.2938, allocations: 26.91 kB / 465.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.225e-05/0.2938, allocations: 27.84 kB / 465.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.996e-05/0.2939, allocations: 66.19 kB / 465.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2939, allocations: 0 / 465.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 9.689e-05/0.294, allocations: 100.9 kB / 465.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.294, allocations: 7.281 kB / 465.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.294, allocations: 0 / 465.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.294, allocations: 0 / 465.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.713e-06/0.294, allocations: 4.734 kB / 465.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.294, allocations: 0 / 465.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.158e-05/0.2941, allocations: 3.469 kB / 465.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.469e-06/0.2941, allocations: 4.062 kB / 465.5 MB, free: 13.24 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 5.896e-05/0.2942, allocations: 111.1 kB / 465.6 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.406e-05/0.2942, allocations: 8.641 kB / 465.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.792e-05/0.2942, allocations: 4.75 kB / 465.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.188e-06/0.2942, allocations: 8.359 kB / 465.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.2943, allocations: 0 / 465.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.2943, allocations: 0 / 465.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001025/0.2944, allocations: 179.9 kB / 465.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.2944, allocations: 3.938 kB / 465.8 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.41e-07/0.2944, allocations: 4 kB / 465.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.2944, allocations: 0.5625 kB / 465.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.124e-06/0.2944, allocations: 0 / 465.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.2944, allocations: 0 / 465.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.2944, allocations: 0.75 kB / 465.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001427/0.2946, allocations: 119.6 kB / 465.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.11e-05/0.2946, allocations: 96.45 kB / 466 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.375e-05/0.2947, allocations: 0.5625 kB / 466 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.173e-05/0.2947, allocations: 4.031 kB / 466 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.376e-05/0.2947, allocations: 3.703 kB / 466 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-06/0.2947, allocations: 0 / 466 MB, free: 12.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 1.683e-05/0.2948, allocations: 79.22 kB / 466.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2948, allocations: 0 / 466.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003241/0.2951, allocations: 17.08 kB / 466.1 MB, free: 12.62 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.0006265/0.2957, allocations: 0.6886 MB / 466.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001557/0.2959, allocations: 70.48 kB / 466.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.2959, allocations: 4.094 kB / 466.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.541e-05/0.296, allocations: 39.41 kB / 466.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004054/0.2964, allocations: 34.73 kB / 466.9 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004872/0.2969, allocations: 250 kB / 467.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001324/0.297, allocations: 0.6856 MB / 467.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.933e-05/0.2971, allocations: 7.062 kB / 467.9 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.797e-05/0.2971, allocations: 16.12 kB / 467.9 MB, free: 11 MB / 350.1 MB Notification: Performance of SimCode: time 9.82e-07/0.2971, allocations: 0 / 467.9 MB, free: 11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02574/0.3228, allocations: 2.768 MB / 470.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.349/8.672, allocations: 2.469 kB / 470.7 MB, free: 10.48 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)