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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002301/0.002301, allocations: 217.6 kB / 22.25 MB, free: 4.852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.478/1.478, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01227/0.01227, allocations: 2.803 MB / 315.2 MB, free: 96 kB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: ExternalMedia requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002051/0.002051, allocations: 71.88 kB / 438.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09654/0.09859, allocations: 54.18 MB / 492.8 MB, free: 7.059 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.01068/0.1093, allocations: 7.013 MB / 499.8 MB, free: 12 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 9.435e-05/0.1094, allocations: 35.92 kB / 499.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.277e-05/0.1094, allocations: 0 / 499.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002534/0.1096, allocations: 59.59 kB / 499.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.626e-05/0.1097, allocations: 19.84 kB / 499.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002093/0.1099, allocations: 43.69 kB / 500 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 9.162e-05/0.11, allocations: 43.67 kB / 500 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.945e-05/0.11, allocations: 7.984 kB / 0.4883 GB, free: 15.8 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.384e-05/0.1101, allocations: 11.94 kB / 0.4883 GB, free: 15.79 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.146e-05/0.1101, allocations: 11.94 kB / 0.4883 GB, free: 15.78 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.086e-05/0.1101, allocations: 0 / 0.4883 GB, free: 15.78 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001982/0.1103, allocations: 43.94 kB / 0.4884 GB, free: 15.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.964e-05/0.1104, allocations: 7.922 kB / 0.4884 GB, free: 15.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.306e-05/0.1104, allocations: 11.94 kB / 0.4884 GB, free: 15.71 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001767/0.1106, allocations: 51.83 kB / 0.4884 GB, free: 15.66 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.1106, allocations: 4 kB / 0.4884 GB, free: 15.66 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1106, allocations: 0 / 0.4884 GB, free: 15.66 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.1106, allocations: 7.938 kB / 0.4884 GB, free: 15.65 MB / 366.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.0003627/0.1109, allocations: 266.2 kB / 0.4887 GB, free: 15.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.111, allocations: 8.031 kB / 0.4887 GB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.538e-05/0.111, allocations: 38.75 kB / 0.4887 GB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.603e-05/0.1111, allocations: 0.9375 kB / 0.4887 GB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.497e-05/0.1112, allocations: 114.4 kB / 0.4888 GB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.091e-05/0.1112, allocations: 4.375 kB / 0.4888 GB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.083e-06/0.1112, allocations: 384 / 0.4888 GB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001267/0.1113, allocations: 53.64 kB / 0.4889 GB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.1113, allocations: 0 / 0.4889 GB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.1113, allocations: 7.984 kB / 0.4889 GB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.1113, allocations: 4 kB / 0.4889 GB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.991e-05/0.1114, allocations: 27.94 kB / 0.4889 GB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001903/0.1116, allocations: 148.7 kB / 0.4891 GB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.163e-05/0.1116, allocations: 46.52 kB / 0.4891 GB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.595e-05/0.1117, allocations: 32.88 kB / 0.4892 GB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.186e-05/0.1117, allocations: 3.938 kB / 0.4892 GB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.39e-05/0.1118, allocations: 30.56 kB / 0.4892 GB, free: 14.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 2.003e-06/0.1118, allocations: 0 / 0.4892 GB, free: 14.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002485/0.112, allocations: 133.8 kB / 0.4893 GB, free: 14.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.185e-05/0.1121, allocations: 55.44 kB / 0.4894 GB, free: 14.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.661e-05/0.1121, allocations: 93.84 kB / 0.4895 GB, free: 14.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.1121, allocations: 25.7 kB / 0.4895 GB, free: 14.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.525e-05/0.1122, allocations: 92.08 kB / 0.4896 GB, free: 14.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.512e-05/0.1123, allocations: 47.53 kB / 0.4896 GB, free: 14.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.895e-05/0.1123, allocations: 13.72 kB / 0.4896 GB, free: 14.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.1124, allocations: 322.8 kB / 0.4899 GB, free: 13.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.536e-05/0.1125, allocations: 24 kB / 0.49 GB, free: 13.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.242e-05/0.1125, allocations: 31.92 kB / 0.49 GB, free: 13.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.722e-05/0.1126, allocations: 67.66 kB / 0.4901 GB, free: 13.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1126, allocations: 0 / 0.4901 GB, free: 13.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001262/0.1127, allocations: 105.6 kB / 0.4902 GB, free: 13.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.1127, allocations: 4 kB / 0.4902 GB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.1128, allocations: 0 / 0.4902 GB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.1128, allocations: 0 / 0.4902 GB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.322e-06/0.1128, allocations: 0 / 0.4902 GB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.1128, allocations: 7.938 kB / 0.4902 GB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.241e-05/0.1128, allocations: 7.953 kB / 0.4902 GB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-06/0.1128, allocations: 0 / 0.4902 GB, free: 13.68 MB / 366.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 9.583e-05/0.1129, allocations: 109.8 kB / 0.4903 GB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.294e-05/0.1129, allocations: 3.938 kB / 0.4903 GB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.885e-05/0.113, allocations: 11.98 kB / 0.4903 GB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.113, allocations: 4 kB / 0.4903 GB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.113, allocations: 0 / 0.4903 GB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.113, allocations: 0 / 0.4903 GB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001402/0.1131, allocations: 148.6 kB / 0.4904 GB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.1131, allocations: 3.938 kB / 0.4904 GB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.1131, allocations: 0 / 0.4904 GB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.1131, allocations: 0 / 0.4904 GB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.1131, allocations: 4 kB / 0.4904 GB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1131, allocations: 0 / 0.4904 GB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1131, allocations: 0 / 0.4904 GB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001472/0.1133, allocations: 129.1 kB / 0.4906 GB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.406e-05/0.1133, allocations: 11.88 kB / 0.4906 GB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.708e-06/0.1133, allocations: 3.938 kB / 0.4906 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.052e-05/0.1133, allocations: 3.938 kB / 0.4906 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.126e-05/0.1133, allocations: 3.938 kB / 0.4906 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.1133, allocations: 4 kB / 0.4906 GB, free: 13.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.685e-05/0.1134, allocations: 75.28 kB / 0.4907 GB, free: 13.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1134, allocations: 0 / 0.4907 GB, free: 13.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002176/0.1136, allocations: 19.92 kB / 0.4907 GB, free: 13.09 MB / 366.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.000727/0.1143, allocations: 0.6973 MB / 0.4914 GB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001332/0.1145, allocations: 63.92 kB / 0.4914 GB, free: 12.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1145, allocations: 0 / 0.4914 GB, free: 12.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.483e-05/0.1145, allocations: 36.05 kB / 0.4915 GB, free: 12.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003861/0.1149, allocations: 27.95 kB / 0.4915 GB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005955/0.1155, allocations: 270.1 kB / 0.4917 GB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.96e-05/0.1156, allocations: 77.64 kB / 0.4918 GB, free: 11.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.056e-05/0.1156, allocations: 4 kB / 0.4918 GB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.113e-05/0.1156, allocations: 11.44 kB / 0.4918 GB, free: 11.83 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1156, allocations: 0 / 0.4918 GB, free: 11.83 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03222/0.1478, allocations: 3.446 MB / 0.4952 GB, free: 8.566 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.32, allocations: 7.984 kB / 0.4952 GB, free: 8.559 MB / 366.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.44217787310481] Failed to read output from testmodel.py, exit status != 0: 11.646829204633832 11.846437954 11.733014608 Calling exit ...