Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.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.001096/0.001096, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.001339/0.001339, allocations: 170.3 kB / 22.46 MB, free: 2.105 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.9079/0.9079, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.01768/0.01768, allocations: 1.983 MB / 261.2 MB, free: 11.27 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.TestConstants,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestConstants,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 384.6 MB, free: 11.94 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.353e-05/1.524e-05, allocations: 12.75 kB / 384.6 MB, free: 11.93 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.007434/0.007449, allocations: 6.814 MB / 391.4 MB, free: 5.082 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 4.969e-06/0.007454, allocations: 3.984 kB / 391.4 MB, free: 5.078 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.715e-05/0.007471, allocations: 0 / 391.4 MB, free: 5.078 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.433e-05/0.007486, allocations: 4 kB / 391.4 MB, free: 5.074 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000256/0.007742, allocations: 92.38 kB / 391.5 MB, free: 4.984 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.948e-06/0.007745, allocations: 0 / 391.5 MB, free: 4.984 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 3.742e-05/0.007783, allocations: 7.938 kB / 391.5 MB, free: 4.977 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.155e-05/0.007814, allocations: 0 / 391.5 MB, free: 4.977 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008415/0.01623, allocations: 36.05 kB / 391.6 MB, free: 4.941 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.756e-05/0.01625, allocations: 4 kB / 391.6 MB, free: 4.938 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.145e-05/0.01626, allocations: 0 / 391.6 MB, free: 4.938 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.817e-06/0.01626, allocations: 0 / 391.6 MB, free: 4.938 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 7.585e-06/0.01627, allocations: 0 / 391.6 MB, free: 4.938 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.303e-05/0.01628, allocations: 7.938 kB / 391.6 MB, free: 4.93 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 5.303e-05/0.01634, allocations: 4 kB / 391.6 MB, free: 4.926 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.01634, allocations: 0 / 391.6 MB, free: 4.926 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.01634, allocations: 0 / 391.6 MB, free: 4.926 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.01635, allocations: 0 / 391.6 MB, free: 4.926 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002499/0.0166, allocations: 233.8 kB / 391.8 MB, free: 4.672 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.01664, allocations: 12.02 kB / 391.8 MB, free: 4.66 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.178e-05/0.01667, allocations: 30.75 kB / 391.9 MB, free: 4.621 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.346e-05/0.0167, allocations: 0.9375 kB / 391.9 MB, free: 4.621 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.93e-05/0.01677, allocations: 105.8 kB / 392 MB, free: 4.492 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.01678, allocations: 4.375 kB / 392 MB, free: 4.488 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.735e-06/0.01679, allocations: 4.375 kB / 392 MB, free: 4.484 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.169e-05/0.01688, allocations: 30.2 kB / 392 MB, free: 4.449 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.01689, allocations: 4.188 kB / 392 MB, free: 4.445 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.186e-06/0.0169, allocations: 3.938 kB / 392 MB, free: 4.441 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.0169, allocations: 0 / 392 MB, free: 4.441 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.757e-05/0.01692, allocations: 0 / 392 MB, free: 4.441 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000284/0.0172, allocations: 354.6 kB / 392.4 MB, free: 4.051 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.966e-05/0.01728, allocations: 177 kB / 392.5 MB, free: 3.867 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.097e-05/0.01731, allocations: 84.17 kB / 392.6 MB, free: 3.781 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.527e-05/0.01734, allocations: 75.28 kB / 392.7 MB, free: 3.707 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.154e-05/0.01738, allocations: 109.8 kB / 392.8 MB, free: 3.59 MB / 314.7 MB Notification: Performance of pre-optimization done (n=0): time 8.62e-07/0.01738, allocations: 0 / 392.8 MB, free: 3.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=0): time 6.253e-05/0.01744, allocations: 29.64 kB / 392.8 MB, free: 3.555 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/0.01749, allocations: 130.7 kB / 393 MB, free: 3.414 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.357e-05/0.01757, allocations: 101.8 kB / 393.1 MB, free: 3.305 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.864e-06/0.01757, allocations: 25.7 kB / 393.1 MB, free: 3.273 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.65e-05/0.01761, allocations: 84.09 kB / 393.2 MB, free: 3.188 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.364e-06/0.01761, allocations: 4 kB / 393.2 MB, free: 3.184 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.761e-05/0.01764, allocations: 13.66 kB / 393.2 MB, free: 3.164 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002173/0.01786, allocations: 311 kB / 393.5 MB, free: 2.852 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.185e-05/0.01787, allocations: 8 kB / 393.5 MB, free: 2.844 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.631e-06/0.01788, allocations: 0 / 393.5 MB, free: 2.844 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.674e-05/0.0179, allocations: 8.859 kB / 393.5 MB, free: 2.832 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.0179, allocations: 3.938 kB / 393.5 MB, free: 2.828 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.438e-05/0.018, allocations: 41.62 kB / 393.5 MB, free: 2.781 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.01801, allocations: 4 kB / 393.5 MB, free: 2.777 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.01802, allocations: 0 / 393.5 MB, free: 2.777 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.01803, allocations: 0 / 393.5 MB, free: 2.777 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.75e-05/0.01808, allocations: 4 kB / 393.5 MB, free: 2.773 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.01808, allocations: 8.031 kB / 393.6 MB, free: 2.766 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.219e-05/0.0181, allocations: 0 / 393.6 MB, free: 2.766 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.308e-06/0.0181, allocations: 0 / 393.6 MB, free: 2.766 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.798e-05/0.01818, allocations: 181.1 kB / 393.7 MB, free: 2.578 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.406e-05/0.01823, allocations: 108.9 kB / 393.8 MB, free: 2.465 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.379e-05/0.01828, allocations: 115.8 kB / 394 MB, free: 2.344 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.412e-05/0.01833, allocations: 180.2 kB / 394.1 MB, free: 2.16 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.265e-05/0.01838, allocations: 180.3 kB / 394.3 MB, free: 1.977 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.238e-05/0.01844, allocations: 180.2 kB / 394.5 MB, free: 1.793 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002/0.01864, allocations: 380.3 kB / 394.9 MB, free: 1.371 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.925e-05/0.01867, allocations: 109 kB / 395 MB, free: 1.258 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.263e-05/0.01871, allocations: 104.9 kB / 395.1 MB, free: 1.148 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.066e-05/0.01876, allocations: 180.3 kB / 395.2 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.202e-05/0.01881, allocations: 180.2 kB / 395.4 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.921e-05/0.01886, allocations: 176.3 kB / 395.6 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.574e-05/0.01891, allocations: 188.2 kB / 395.8 MB, free: 420 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001144/0.01903, allocations: 303.8 kB / 396.1 MB, free: 92 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.322e-05/0.01908, allocations: 104.9 kB / 396.2 MB, free: 15.98 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.38e-05/0.01915, allocations: 184.2 kB / 396.3 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.084e-05/0.01922, allocations: 101 kB / 396.4 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.728e-05/0.01927, allocations: 180.2 kB / 396.6 MB, free: 15.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.29e-05/0.01931, allocations: 117 kB / 396.7 MB, free: 15.38 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.12e-05/0.01934, allocations: 75.28 kB / 396.8 MB, free: 15.31 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01934, allocations: 0 / 396.8 MB, free: 15.31 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002497/0.01959, allocations: 4 kB / 396.8 MB, free: 15.3 MB / 330.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.000323/0.01991, allocations: 0.805 MB / 397.6 MB, free: 14.47 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 6.429e-05/0.01998, allocations: 12 kB / 397.6 MB, free: 14.46 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.01998, allocations: 0 / 397.6 MB, free: 14.46 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.824e-06/0.01998, allocations: 0 / 397.6 MB, free: 14.46 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003427/0.02032, allocations: 466.9 kB / 398.1 MB, free: 14 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004323/0.02075, allocations: 193.7 kB / 398.3 MB, free: 13.77 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.417e-05/0.02082, allocations: 51.36 kB / 398.3 MB, free: 13.7 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.38e-05/0.02084, allocations: 0 / 398.3 MB, free: 13.7 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.775e-05/0.02087, allocations: 8.5 kB / 398.3 MB, free: 13.69 MB / 330.7 MB Notification: Performance of SimCode: time 7.52e-07/0.02087, allocations: 0 / 398.3 MB, free: 13.69 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01318/0.03405, allocations: 1.509 MB / 399.8 MB, free: 12.29 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.846/6.88, allocations: 28.47 kB / 399.9 MB, free: 12.28 MB / 330.7 MB " [Timeout remaining time 653] (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants_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_TestConstants.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.773847996257246] Failed to read output from testmodel.py, exit status != 0: 6.9594918843358755 7.110380594 6.949893895 Calling exit ...