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.001201/0.001201, allocations: 72.44 kB / 19.17 MB, free: 0.7344 MB / 13.93 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.0008867/0.0008867, allocations: 165.9 kB / 22.45 MB, free: 2.098 MB / 18.57 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 0.9077/0.9077, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo): time 0.008191/0.008191, allocations: 1.984 MB / 261.2 MB, free: 11.28 MB / 250.7 MB " [Timeout remaining time 180] Using package ExternalMedia with version 4.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/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: Performance of FrontEnd - loaded program: time 1.943e-06/1.943e-06, allocations: 0 / 384.6 MB, free: 11.95 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.221e-05/2.416e-05, allocations: 5.094 kB / 384.6 MB, free: 11.94 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.00946/0.009485, allocations: 6.997 MB / 391.6 MB, free: 4.91 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 5.009e-05/0.009535, allocations: 35.81 kB / 391.6 MB, free: 4.875 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.743e-05/0.009562, allocations: 0 / 391.6 MB, free: 4.875 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002806/0.009843, allocations: 59.64 kB / 391.7 MB, free: 4.816 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 3.806e-05/0.009881, allocations: 27.78 kB / 391.7 MB, free: 4.789 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002399/0.01012, allocations: 39.73 kB / 391.8 MB, free: 4.75 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 9.641e-05/0.01022, allocations: 51.5 kB / 391.8 MB, free: 4.699 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.375e-05/0.01027, allocations: 3.938 kB / 391.8 MB, free: 4.695 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.212e-05/0.01032, allocations: 15.98 kB / 391.8 MB, free: 4.68 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.474e-05/0.01038, allocations: 11.94 kB / 391.9 MB, free: 4.668 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.313e-05/0.0104, allocations: 0 / 391.9 MB, free: 4.668 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001999/0.0106, allocations: 43.98 kB / 391.9 MB, free: 4.625 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.443e-05/0.01062, allocations: 0 / 391.9 MB, free: 4.625 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 3.019e-05/0.01065, allocations: 19.94 kB / 391.9 MB, free: 4.605 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001736/0.01082, allocations: 47.89 kB / 392 MB, free: 4.559 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.01082, allocations: 3.984 kB / 392 MB, free: 4.555 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.01083, allocations: 0 / 392 MB, free: 4.555 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.149e-06/0.01083, allocations: 0 / 392 MB, free: 4.555 MB / 314.7 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.0003309/0.01116, allocations: 262.2 kB / 392.2 MB, free: 4.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.01121, allocations: 12.03 kB / 392.2 MB, free: 4.258 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.145e-05/0.01125, allocations: 34.73 kB / 392.3 MB, free: 4.215 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.985e-05/0.01128, allocations: 8.875 kB / 392.3 MB, free: 4.207 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.301e-05/0.01136, allocations: 113.7 kB / 392.4 MB, free: 4.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.01137, allocations: 384 / 392.4 MB, free: 4.07 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.035e-06/0.01138, allocations: 4.375 kB / 392.4 MB, free: 4.066 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001344/0.01152, allocations: 62.23 kB / 392.5 MB, free: 4 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.01153, allocations: 192 / 392.5 MB, free: 4 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.01154, allocations: 3.938 kB / 392.5 MB, free: 3.996 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.01154, allocations: 0 / 392.5 MB, free: 3.996 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.204e-05/0.01159, allocations: 31.98 kB / 392.5 MB, free: 3.965 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001632/0.01175, allocations: 144.7 kB / 392.6 MB, free: 3.781 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.497e-05/0.01181, allocations: 46.5 kB / 392.7 MB, free: 3.727 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.183e-05/0.01185, allocations: 25.17 kB / 392.7 MB, free: 3.699 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.651e-05/0.01187, allocations: 4 kB / 392.7 MB, free: 3.695 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.0119, allocations: 38.55 kB / 392.7 MB, free: 3.648 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 1.152e-06/0.0119, allocations: 0 / 392.7 MB, free: 3.648 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002217/0.01212, allocations: 142.8 kB / 392.9 MB, free: 3.504 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.01215, allocations: 55.34 kB / 392.9 MB, free: 3.438 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.699e-05/0.01219, allocations: 93.8 kB / 393 MB, free: 3.336 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.068e-05/0.0122, allocations: 25.7 kB / 393.1 MB, free: 3.305 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.364e-05/0.01223, allocations: 80.14 kB / 393.1 MB, free: 3.223 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.307e-05/0.01228, allocations: 51.53 kB / 393.2 MB, free: 3.172 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.486e-05/0.01231, allocations: 17.72 kB / 393.2 MB, free: 3.148 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.91e-05/0.01241, allocations: 318.8 kB / 393.5 MB, free: 2.828 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.418e-05/0.01245, allocations: 24 kB / 393.5 MB, free: 2.805 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.645e-05/0.01247, allocations: 32.02 kB / 393.6 MB, free: 2.773 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.717e-05/0.01255, allocations: 66.53 kB / 393.6 MB, free: 2.707 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.01255, allocations: 0 / 393.6 MB, free: 2.707 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001133/0.01267, allocations: 105.5 kB / 393.7 MB, free: 2.598 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.01268, allocations: 7.281 kB / 393.7 MB, free: 2.594 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.01269, allocations: 3.938 kB / 393.7 MB, free: 2.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.0127, allocations: 0 / 393.7 MB, free: 2.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.0127, allocations: 0 / 393.7 MB, free: 2.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.01271, allocations: 3.938 kB / 393.7 MB, free: 2.586 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.667e-05/0.01275, allocations: 7.953 kB / 393.8 MB, free: 2.578 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.01275, allocations: 0 / 393.8 MB, free: 2.578 MB / 314.7 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.7e-05/0.01283, allocations: 117.9 kB / 393.9 MB, free: 2.453 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.887e-06/0.01284, allocations: 4 kB / 393.9 MB, free: 2.449 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.51e-05/0.01288, allocations: 11.91 kB / 393.9 MB, free: 2.434 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.01289, allocations: 0 / 393.9 MB, free: 2.434 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.01289, allocations: 0 / 393.9 MB, free: 2.434 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.01289, allocations: 0 / 393.9 MB, free: 2.434 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001048/0.013, allocations: 148.6 kB / 394 MB, free: 2.246 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.013, allocations: 4 kB / 394 MB, free: 2.242 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.82e-07/0.013, allocations: 0 / 394 MB, free: 2.242 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.01301, allocations: 0 / 394 MB, free: 2.242 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.01301, allocations: 7.938 kB / 394 MB, free: 2.234 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.01302, allocations: 0 / 394 MB, free: 2.234 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.01302, allocations: 0 / 394 MB, free: 2.234 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001341/0.01315, allocations: 126.1 kB / 394.2 MB, free: 2.094 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.133e-05/0.01316, allocations: 7.938 kB / 394.2 MB, free: 2.086 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.453e-05/0.01318, allocations: 7.938 kB / 394.2 MB, free: 2.078 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.723e-05/0.0132, allocations: 0 / 394.2 MB, free: 2.078 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.207e-05/0.01322, allocations: 0 / 394.2 MB, free: 2.078 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.027e-06/0.01322, allocations: 3.984 kB / 394.2 MB, free: 2.074 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002918/0.01351, allocations: 75.28 kB / 394.3 MB, free: 2 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01351, allocations: 4 kB / 394.3 MB, free: 1.996 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002392/0.01375, allocations: 16.03 kB / 394.3 MB, free: 1.98 MB / 314.7 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.0007468/0.0145, allocations: 0.6954 MB / 395 MB, free: 1.266 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001138/0.01461, allocations: 67.89 kB / 395 MB, free: 1.199 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.01461, allocations: 0 / 395 MB, free: 1.199 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.869e-05/0.01463, allocations: 31.98 kB / 395.1 MB, free: 1.168 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002981/0.01493, allocations: 27.95 kB / 395.1 MB, free: 1.141 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003836/0.01531, allocations: 238.2 kB / 395.3 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.438e-05/0.01536, allocations: 75.23 kB / 395.4 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.277e-05/0.01538, allocations: 4 kB / 395.4 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.5e-05/0.01541, allocations: 12.5 kB / 395.4 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of SimCode: time 7.11e-07/0.01541, allocations: 4 kB / 395.4 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0187/0.0341, allocations: 3.58 MB / 399 MB, free: 13.33 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.125/7.159, allocations: 3.984 kB / 399 MB, free: 13.33 MB / 330.7 MB " [Timeout remaining time 653] (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: 9.35095046646893] Failed to read output from testmodel.py, exit status != 0: 7.489658307284117 7.660046301 7.488715083 Calling exit ...