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.001409/0.001409, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001552/0.001552, allocations: 217.4 kB / 23.03 MB, free: 4.922 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.46/1.46, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.01787/0.01787, allocations: 2.806 MB / 316 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestState,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestState",fmuType="cs",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.002019/0.002019, allocations: 67.88 kB / 439.4 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09708/0.0991, allocations: 54.16 MB / 493.6 MB, free: 7.055 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.009535/0.1086, allocations: 7.006 MB / 0.4888 GB, free: 12 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 7.694e-05/0.1087, allocations: 28 kB / 0.4889 GB, free: 15.98 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.255e-05/0.1087, allocations: 4 kB / 0.4889 GB, free: 15.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002394/0.109, allocations: 63.58 kB / 0.4889 GB, free: 15.91 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 3.495e-05/0.109, allocations: 27.66 kB / 0.489 GB, free: 15.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000192/0.1092, allocations: 43.69 kB / 0.489 GB, free: 15.85 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 8.325e-05/0.1093, allocations: 35.69 kB / 0.489 GB, free: 15.81 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.247e-05/0.1093, allocations: 7.984 kB / 0.489 GB, free: 15.8 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.969e-05/0.1094, allocations: 15.94 kB / 0.4891 GB, free: 15.79 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.317e-05/0.1094, allocations: 11.94 kB / 0.4891 GB, free: 15.78 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.133e-05/0.1094, allocations: 0 / 0.4891 GB, free: 15.78 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001882/0.1096, allocations: 43.94 kB / 0.4891 GB, free: 15.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.439e-05/0.1096, allocations: 3.938 kB / 0.4891 GB, free: 15.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.21e-05/0.1097, allocations: 19.92 kB / 0.4891 GB, free: 15.71 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001722/0.1099, allocations: 55.81 kB / 0.4892 GB, free: 15.66 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1099, allocations: 0 / 0.4892 GB, free: 15.66 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1099, allocations: 0 / 0.4892 GB, free: 15.66 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.01e-06/0.1099, allocations: 0 / 0.4892 GB, free: 15.66 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.0003432/0.1102, allocations: 266.2 kB / 0.4894 GB, free: 15.37 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.1102, allocations: 20.02 kB / 0.4895 GB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.284e-05/0.1103, allocations: 192 / 0.4895 GB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.27e-05/0.1103, allocations: 34.75 kB / 0.4895 GB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.591e-05/0.1103, allocations: 4.938 kB / 0.4895 GB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.348e-05/0.1104, allocations: 110.4 kB / 0.4896 GB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.912e-06/0.1104, allocations: 384 / 0.4896 GB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.185e-05/0.1104, allocations: 4.125 kB / 0.4896 GB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001157/0.1105, allocations: 57.69 kB / 0.4897 GB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.1106, allocations: 0 / 0.4897 GB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.843e-06/0.1106, allocations: 0 / 0.4897 GB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.457e-06/0.1106, allocations: 3.984 kB / 0.4897 GB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.291e-05/0.1106, allocations: 32 kB / 0.4897 GB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001703/0.1108, allocations: 144.6 kB / 0.4898 GB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.02e-05/0.1109, allocations: 42.56 kB / 0.4899 GB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.507e-05/0.1109, allocations: 36.81 kB / 0.4899 GB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.1109, allocations: 4 kB / 0.4899 GB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/0.1109, allocations: 30.56 kB / 0.4899 GB, free: 14.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 9.01e-07/0.1109, allocations: 0 / 0.4899 GB, free: 14.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002295/0.1112, allocations: 137.8 kB / 0.4901 GB, free: 14.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.548e-05/0.1112, allocations: 55.34 kB / 0.4901 GB, free: 14.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.851e-05/0.1113, allocations: 93.86 kB / 0.4902 GB, free: 14.44 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.1113, allocations: 29.73 kB / 0.4902 GB, free: 14.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.594e-05/0.1113, allocations: 80.14 kB / 0.4903 GB, free: 14.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.927e-05/0.1114, allocations: 51.53 kB / 0.4904 GB, free: 14.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.503e-05/0.1114, allocations: 17.7 kB / 0.4904 GB, free: 14.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.1115, allocations: 314.8 kB / 0.4907 GB, free: 13.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.865e-05/0.1116, allocations: 31.98 kB / 0.4907 GB, free: 13.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.134e-05/0.1116, allocations: 26.81 kB / 0.4907 GB, free: 13.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.53e-05/0.1117, allocations: 68.83 kB / 0.4908 GB, free: 13.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1117, allocations: 0 / 0.4908 GB, free: 13.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001272/0.1118, allocations: 113.4 kB / 0.4909 GB, free: 13.69 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.1118, allocations: 6.719 kB / 0.4909 GB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.1118, allocations: 4 kB / 0.4909 GB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.1119, allocations: 0 / 0.4909 GB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.1119, allocations: 0 / 0.4909 GB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.067e-06/0.1119, allocations: 0 / 0.4909 GB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.069e-05/0.1119, allocations: 7.953 kB / 0.4909 GB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.49e-06/0.1119, allocations: 0 / 0.4909 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 8.837e-05/0.112, allocations: 109.8 kB / 0.491 GB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.114e-05/0.112, allocations: 3.938 kB / 0.491 GB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.88e-05/0.112, allocations: 3.969 kB / 0.491 GB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.112, allocations: 11.98 kB / 0.4911 GB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.112, allocations: 7.984 kB / 0.4911 GB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.1121, allocations: 4 kB / 0.4911 GB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001239/0.1122, allocations: 144.6 kB / 0.4912 GB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1122, allocations: 0 / 0.4912 GB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.1122, allocations: 0 / 0.4912 GB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.1122, allocations: 0 / 0.4912 GB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.1122, allocations: 4 kB / 0.4912 GB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1122, allocations: 0 / 0.4912 GB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1122, allocations: 0 / 0.4912 GB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001496/0.1123, allocations: 136.3 kB / 0.4913 GB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.522e-05/0.1124, allocations: 11.97 kB / 0.4914 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.167e-06/0.1124, allocations: 0 / 0.4914 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.109e-05/0.1124, allocations: 0 / 0.4914 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.344e-05/0.1124, allocations: 0 / 0.4914 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-06/0.1124, allocations: 0 / 0.4914 GB, free: 13.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.267e-05/0.1124, allocations: 79.28 kB / 0.4914 GB, free: 13.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1124, allocations: 0 / 0.4914 GB, free: 13.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001995/0.1126, allocations: 12 kB / 0.4914 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.0006793/0.1133, allocations: 0.7058 MB / 0.4921 GB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001274/0.1134, allocations: 67.91 kB / 0.4922 GB, free: 12.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1134, allocations: 0 / 0.4922 GB, free: 12.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.38e-05/0.1135, allocations: 28 kB / 0.4922 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.0003944/0.1139, allocations: 36.06 kB / 0.4923 GB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005199/0.1144, allocations: 266 kB / 0.4925 GB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.301e-05/0.1145, allocations: 75.34 kB / 0.4926 GB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.391e-05/0.1145, allocations: 0 / 0.4926 GB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.746e-05/0.1145, allocations: 11.44 kB / 0.4926 GB, free: 11.83 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1145, allocations: 0 / 0.4926 GB, free: 11.83 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02249/0.137, allocations: 3.163 MB / 0.4957 GB, free: 8.863 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.4, allocations: 7.5 kB / 0.4957 GB, free: 8.859 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestState_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_TestMedium_TestState.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.467364651034586] Failed to read output from testmodel.py, exit status != 0: 11.786590849980712 11.966393684 11.853864437 Calling exit ...