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.001341/0.001341, allocations: 106.5 kB / 16.45 MB, free: 6.453 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.001403/0.001403, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.561/1.561, allocations: 230.6 MB / 252.8 MB, free: 8.969 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.02006/0.02006, allocations: 2.8 MB / 311.7 MB, free: 1.461 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="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.002853/0.002853, allocations: 71.89 kB / 433.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1163, allocations: 54.15 MB / 487.6 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.009616/0.126, allocations: 7.624 MB / 495.3 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 4.695e-05/0.126, allocations: 31.88 kB / 495.3 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.153e-05/0.126, allocations: 0 / 495.3 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000255/0.1263, allocations: 79.58 kB / 495.4 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.934e-05/0.1263, allocations: 19.84 kB / 495.4 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001623/0.1265, allocations: 35.69 kB / 495.4 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.478e-05/0.1266, allocations: 43.69 kB / 495.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.373e-05/0.1266, allocations: 0 / 495.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.649e-05/0.1266, allocations: 15.92 kB / 495.5 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.386e-05/0.1267, allocations: 19.86 kB / 495.5 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.057e-05/0.1267, allocations: 0 / 495.5 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001845/0.1269, allocations: 47.94 kB / 495.6 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.228e-05/0.1269, allocations: 4 kB / 495.6 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.287e-05/0.1269, allocations: 15.88 kB / 495.6 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001727/0.1271, allocations: 59.75 kB / 495.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1271, allocations: 0 / 495.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1271, allocations: 0 / 495.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.1271, allocations: 0 / 495.6 MB, free: 1.121 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.000411/0.1275, allocations: 339.3 kB / 496 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.1276, allocations: 15.98 kB / 496 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.314e-05/0.1276, allocations: 38.73 kB / 496 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.991e-05/0.1276, allocations: 4.938 kB / 496 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001245/0.1278, allocations: 172.3 kB / 496.2 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.998e-06/0.1278, allocations: 384 / 496.2 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.634e-06/0.1278, allocations: 4.359 kB / 496.2 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001211/0.1279, allocations: 57.62 kB / 496.2 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.1279, allocations: 0 / 496.2 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.552e-06/0.1279, allocations: 0 / 496.2 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.1279, allocations: 0 / 496.2 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.952e-05/0.128, allocations: 31.92 kB / 496.3 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001787/0.1281, allocations: 173.6 kB / 496.4 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.472e-05/0.1282, allocations: 46.5 kB / 496.5 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.465e-05/0.1282, allocations: 32.88 kB / 496.5 MB, free: 64 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.059e-05/0.1283, allocations: 7.875 kB / 496.5 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/0.1283, allocations: 34.56 kB / 496.6 MB, free: 12 kB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 9.02e-07/0.1283, allocations: 0 / 496.6 MB, free: 12 kB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002453/0.1285, allocations: 129.9 kB / 496.7 MB, free: 15.88 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.231e-05/0.1286, allocations: 55.44 kB / 496.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.736e-05/0.1286, allocations: 93.8 kB / 496.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.727e-05/0.1286, allocations: 29.7 kB / 496.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.988e-05/0.1287, allocations: 80.14 kB / 496.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.224e-05/0.1287, allocations: 51.5 kB / 497 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.546e-05/0.1288, allocations: 17.7 kB / 497 MB, free: 15.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.1289, allocations: 314.8 kB / 497.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.45e-05/0.1289, allocations: 27.98 kB / 497.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.874e-05/0.129, allocations: 31.94 kB / 497.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.329e-05/0.1291, allocations: 68.06 kB / 497.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1291, allocations: 0 / 497.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001141/0.1292, allocations: 97.61 kB / 497.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.1292, allocations: 4 kB / 497.5 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.1292, allocations: 0 / 497.5 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.1292, allocations: 0 / 497.5 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.378e-06/0.1292, allocations: 7.938 kB / 497.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/0.1292, allocations: 0 / 497.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.145e-05/0.1293, allocations: 11.83 kB / 497.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.381e-06/0.1293, allocations: 4.062 kB / 497.6 MB, free: 14.95 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.499e-05/0.1293, allocations: 109.8 kB / 497.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.608e-06/0.1294, allocations: 3.938 kB / 497.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.745e-05/0.1294, allocations: 4.094 kB / 497.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.1294, allocations: 3.984 kB / 497.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.1294, allocations: 4 kB / 497.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.1294, allocations: 0 / 497.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001309/0.1295, allocations: 165.6 kB / 497.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.1295, allocations: 3.938 kB / 497.9 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.565e-06/0.1295, allocations: 8 kB / 497.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.1295, allocations: 0 / 497.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.579e-06/0.1295, allocations: 0 / 497.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.1295, allocations: 3.984 kB / 497.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1295, allocations: 0 / 497.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001387/0.1297, allocations: 125 kB / 498 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.151e-05/0.1297, allocations: 84.98 kB / 498.1 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.203e-05/0.1297, allocations: 4 kB / 498.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.795e-05/0.1298, allocations: 4.031 kB / 498.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.837e-05/0.1298, allocations: 0 / 498.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.973e-06/0.1298, allocations: 0 / 498.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.38e-05/0.1298, allocations: 79.22 kB / 498.2 MB, free: 14.26 MB / 366.1 MB Notification: Performance of sort global known variables: time 5e-08/0.1298, allocations: 0 / 498.2 MB, free: 14.26 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001934/0.13, allocations: 15.94 kB / 498.2 MB, free: 14.25 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.0007005/0.1307, allocations: 0.6955 MB / 498.9 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001324/0.1308, allocations: 63.94 kB / 498.9 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.1308, allocations: 8.062 kB / 498.9 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.999e-05/0.1309, allocations: 24 kB / 499 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004059/0.1313, allocations: 34.55 kB / 499 MB, free: 13.4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005468/0.1318, allocations: 268.8 kB / 499.3 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.1322, allocations: 0.6846 MB / 499.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.16e-05/0.1322, allocations: 4 kB / 499.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.699e-05/0.1322, allocations: 19.36 kB / 500 MB, free: 12.37 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1322, allocations: 4 kB / 500 MB, free: 12.36 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02632/0.1585, allocations: 2.787 MB / 0.491 GB, free: 9.672 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.297/8.456, allocations: 8 kB / 0.491 GB, free: 9.664 MB / 366.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 & 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: 11.445184847339988] Failed to read output from testmodel.py, exit status != 0: 8.74080880312249 8.754468947 8.624472461 Calling exit ...