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.001357/0.001357, allocations: 117.1 kB / 17.16 MB, free: 5.895 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.001388/0.001388, allocations: 215 kB / 20.13 MB, free: 2.949 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.497/1.497, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.01196/0.01196, allocations: 2.802 MB / 312.4 MB, free: 2.324 MB / 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.001941/0.001941, allocations: 66.14 kB / 434.2 MB, free: 39.08 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09428/0.09622, allocations: 54.12 MB / 488.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.00736/0.1036, allocations: 7.631 MB / 496 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 3.765e-05/0.1036, allocations: 28.02 kB / 496 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.405e-05/0.1036, allocations: 0 / 496 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002768/0.1039, allocations: 76.08 kB / 496.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.653e-05/0.1039, allocations: 22.58 kB / 496.1 MB, free: 8.156 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001936/0.1041, allocations: 46.56 kB / 496.1 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.847e-05/0.1042, allocations: 37.56 kB / 496.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.858e-05/0.1043, allocations: 1.375 kB / 496.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.507e-05/0.1043, allocations: 12.19 kB / 496.2 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.821e-05/0.1043, allocations: 24.11 kB / 496.2 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.047e-05/0.1044, allocations: 0 / 496.2 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000197/0.1045, allocations: 39.69 kB / 496.2 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.282e-05/0.1046, allocations: 1.75 kB / 496.2 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.628e-05/0.1046, allocations: 21.78 kB / 496.3 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001713/0.1048, allocations: 62.48 kB / 496.3 MB, free: 8.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1048, allocations: 5.156 kB / 496.3 MB, free: 8.023 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1048, allocations: 0 / 496.3 MB, free: 8.023 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.438e-05/0.1048, allocations: 0 / 496.3 MB, free: 8.023 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.0003136/0.1051, allocations: 339.9 kB / 496.7 MB, free: 7.656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.1051, allocations: 13.23 kB / 496.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.472e-05/0.1052, allocations: 1.438 kB / 496.7 MB, free: 7.652 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.422e-05/0.1052, allocations: 36.14 kB / 496.7 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.767e-05/0.1052, allocations: 6.156 kB / 496.7 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.609e-05/0.1053, allocations: 165.7 kB / 496.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.1053, allocations: 9.438 kB / 496.9 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.1053, allocations: 4.125 kB / 496.9 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00011/0.1054, allocations: 59.02 kB / 497 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.1054, allocations: 0 / 497 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.392e-06/0.1054, allocations: 0 / 497 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.1054, allocations: 1.125 kB / 497 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.947e-05/0.1055, allocations: 27.64 kB / 497 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001149/0.1056, allocations: 172.6 kB / 497.1 MB, free: 7.121 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.554e-05/0.1057, allocations: 50.28 kB / 497.2 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.982e-05/0.1057, allocations: 31.16 kB / 497.2 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.1057, allocations: 1.469 kB / 497.2 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.741e-05/0.1057, allocations: 35.91 kB / 497.3 MB, free: 7.008 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.012e-06/0.1057, allocations: 0 / 497.3 MB, free: 7.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002067/0.106, allocations: 131.9 kB / 497.4 MB, free: 6.926 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.442e-05/0.106, allocations: 55.34 kB / 497.4 MB, free: 6.859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.881e-05/0.106, allocations: 89.86 kB / 497.5 MB, free: 6.762 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.424e-06/0.106, allocations: 31.2 kB / 497.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.108e-05/0.106, allocations: 80.14 kB / 497.6 MB, free: 6.645 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.372e-05/0.1061, allocations: 45.34 kB / 497.7 MB, free: 6.605 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.033e-05/0.1061, allocations: 21.48 kB / 497.7 MB, free: 6.582 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.927e-05/0.1061, allocations: 316.9 kB / 498 MB, free: 6.266 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.068e-05/0.1062, allocations: 23.08 kB / 498 MB, free: 6.254 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.521e-05/0.1062, allocations: 28.83 kB / 498.1 MB, free: 6.238 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.802e-05/0.1063, allocations: 70.92 kB / 498.1 MB, free: 6.195 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1063, allocations: 6 kB / 498.1 MB, free: 6.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 9.458e-05/0.1064, allocations: 89.86 kB / 498.2 MB, free: 6.133 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.1064, allocations: 10.7 kB / 498.2 MB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.333e-06/0.1064, allocations: 4 kB / 498.2 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.1064, allocations: 5.219 kB / 498.3 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.1064, allocations: 0 / 498.3 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.1064, allocations: 1.344 kB / 498.3 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.967e-05/0.1064, allocations: 9.078 kB / 498.3 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-06/0.1065, allocations: 3.938 kB / 498.3 MB, free: 6.109 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.874e-05/0.1065, allocations: 116.5 kB / 498.4 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.018e-05/0.1065, allocations: 9.453 kB / 498.4 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.429e-05/0.1066, allocations: 4.094 kB / 498.4 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.1066, allocations: 5.359 kB / 498.4 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.1066, allocations: 0 / 498.4 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.1066, allocations: 1.344 kB / 498.4 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.718e-05/0.1066, allocations: 168.2 kB / 498.6 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1066, allocations: 0 / 498.6 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-07/0.1066, allocations: 0 / 498.6 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.1066, allocations: 1.344 kB / 498.6 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.65e-06/0.1067, allocations: 4 kB / 498.6 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.1067, allocations: 3.984 kB / 498.6 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1067, allocations: 1.375 kB / 498.6 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001146/0.1068, allocations: 132.8 kB / 498.7 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.18e-05/0.1068, allocations: 82.25 kB / 498.8 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.042e-05/0.1068, allocations: 1.688 kB / 498.8 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.85e-05/0.1068, allocations: 0 / 498.8 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.749e-05/0.1068, allocations: 0 / 498.8 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-06/0.1068, allocations: 5.562 kB / 498.8 MB, free: 5.547 MB / 350.1 MB Notification: Performance of sorting global known variables: time 1.303e-05/0.1069, allocations: 75.28 kB / 498.9 MB, free: 5.473 MB / 350.1 MB Notification: Performance of sort global known variables: time 3e-08/0.1069, allocations: 0 / 498.9 MB, free: 5.473 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001937/0.1071, allocations: 16.06 kB / 498.9 MB, free: 5.469 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.0005014/0.1076, allocations: 0.6935 MB / 499.6 MB, free: 4.809 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001266/0.1077, allocations: 65.78 kB / 499.6 MB, free: 4.773 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1077, allocations: 0 / 499.6 MB, free: 4.773 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.929e-05/0.1077, allocations: 24.72 kB / 499.7 MB, free: 4.762 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000365/0.1081, allocations: 42.98 kB / 499.7 MB, free: 4.734 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004716/0.1085, allocations: 261 kB / 500 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001328/0.1087, allocations: 0.6884 MB / 0.4889 GB, free: 3.727 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.431e-05/0.1087, allocations: 4 kB / 0.4889 GB, free: 3.723 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.78e-05/0.1087, allocations: 19.42 kB / 0.4889 GB, free: 3.703 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1087, allocations: 0 / 0.4889 GB, free: 3.703 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01765/0.1264, allocations: 2.829 MB / 0.4917 GB, free: 0.9844 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.581/8.707, allocations: 1.75 kB / 0.4917 GB, free: 0.9844 MB / 350.1 MB " [Timeout remaining time 651] (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: 11.636793353012763] Failed to read output from testmodel.py, exit status != 0: 9.049435815017205 9.064158334 8.956479372 Calling exit ...