Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.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.001945/0.001945, allocations: 102.5 kB / 16.45 MB, free: 6.449 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.002478/0.002478, allocations: 212 kB / 19.43 MB, free: 3.637 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.489/1.489, allocations: 230.6 MB / 252.8 MB, free: 8.984 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.01392/0.01392, allocations: 2.8 MB / 311.6 MB, free: 1.465 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.TestSat,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestSat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestSat,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestSat",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.001967/0.001967, allocations: 63.91 kB / 433.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1131, allocations: 54.13 MB / 487.6 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestSat): time 0.01184/0.125, allocations: 7.624 MB / 495.3 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007017/0.1257, allocations: 0.5526 MB / 495.8 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.166e-05/0.1257, allocations: 0 / 495.8 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002372/0.1259, allocations: 75.59 kB / 495.9 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.273e-05/0.1259, allocations: 15.86 kB / 495.9 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001506/0.1261, allocations: 31.77 kB / 495.9 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.35e-05/0.1262, allocations: 31.75 kB / 496 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.627e-05/0.1262, allocations: 7.984 kB / 496 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.686e-05/0.1263, allocations: 7.938 kB / 496 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.6e-05/0.1263, allocations: 15.94 kB / 496 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.525e-05/0.1263, allocations: 3.984 kB / 496 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001833/0.1265, allocations: 35.94 kB / 496 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.134e-05/0.1265, allocations: 0 / 496 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.948e-05/0.1266, allocations: 23.88 kB / 496 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001767/0.1267, allocations: 47.81 kB / 496.1 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1267, allocations: 0 / 496.1 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.1267, allocations: 0 / 496.1 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.1268, allocations: 4 kB / 496.1 MB, free: 0.6484 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004486/0.1272, allocations: 335.3 kB / 496.4 MB, free: 280 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.1273, allocations: 15.98 kB / 496.4 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.373e-05/0.1273, allocations: 34.73 kB / 496.5 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.062e-05/0.1273, allocations: 4.875 kB / 496.5 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000146/0.1275, allocations: 168.3 kB / 496.6 MB, free: 8 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.1275, allocations: 4.375 kB / 496.6 MB, free: 4 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.023e-06/0.1275, allocations: 384 / 496.6 MB, free: 4 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001662/0.1277, allocations: 65.27 kB / 496.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.1277, allocations: 0 / 496.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.412e-06/0.1277, allocations: 0 / 496.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.1277, allocations: 0 / 496.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.652e-05/0.1277, allocations: 31.97 kB / 496.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002726/0.128, allocations: 169.6 kB / 496.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.271e-05/0.1281, allocations: 42.56 kB / 497 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.496e-05/0.1281, allocations: 32.83 kB / 497 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.866e-05/0.1281, allocations: 3.938 kB / 497 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/0.1282, allocations: 30.56 kB / 497 MB, free: 15.56 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.002e-06/0.1282, allocations: 3.938 kB / 497 MB, free: 15.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0002372/0.1284, allocations: 121.9 kB / 497.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/0.1285, allocations: 51.41 kB / 497.2 MB, free: 15.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.1286, allocations: 97.88 kB / 497.3 MB, free: 15.26 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.1286, allocations: 25.7 kB / 497.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.847e-05/0.1287, allocations: 80.38 kB / 497.4 MB, free: 15.15 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.072e-05/0.1287, allocations: 47.53 kB / 497.4 MB, free: 15.1 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.504e-05/0.1288, allocations: 17.72 kB / 497.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.129, allocations: 318.8 kB / 497.8 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.31e-05/0.129, allocations: 19.98 kB / 497.8 MB, free: 14.74 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.923e-05/0.129, allocations: 31.92 kB / 497.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.875e-05/0.1291, allocations: 60.88 kB / 497.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1291, allocations: 4 kB / 497.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001268/0.1292, allocations: 93.56 kB / 498 MB, free: 14.54 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.1292, allocations: 4 kB / 498 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.1293, allocations: 0 / 498 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.1293, allocations: 0 / 498 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.1293, allocations: 0 / 498 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.1293, allocations: 4 kB / 498 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.495e-05/0.1293, allocations: 0 / 498 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.1293, allocations: 0 / 498 MB, free: 14.54 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: 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): 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.541e-05/0.1294, allocations: 117.9 kB / 498.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.067e-05/0.1294, allocations: 15.77 kB / 498.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.421e-05/0.1294, allocations: 4.094 kB / 498.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.1294, allocations: 3.984 kB / 498.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1294, allocations: 0 / 498.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.1294, allocations: 0 / 498.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001419/0.1296, allocations: 169.6 kB / 498.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.1296, allocations: 3.938 kB / 498.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.1296, allocations: 0 / 498.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.1296, allocations: 0 / 498.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.32e-06/0.1296, allocations: 4 kB / 498.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.1296, allocations: 0 / 498.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.1296, allocations: 4 kB / 498.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001866/0.1298, allocations: 120.8 kB / 498.4 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.13e-05/0.1298, allocations: 88.98 kB / 498.5 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.102e-05/0.1298, allocations: 4 kB / 498.5 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.786e-05/0.1299, allocations: 0 / 498.5 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.081e-05/0.1299, allocations: 0 / 498.5 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.1299, allocations: 8.031 kB / 498.5 MB, free: 13.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001483/0.13, allocations: 75.28 kB / 498.6 MB, free: 13.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.13, allocations: 3.938 kB / 498.6 MB, free: 13.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002094/0.1302, allocations: 11.94 kB / 498.6 MB, free: 13.82 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: 0 () * 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.0007267/0.131, allocations: 0.6838 MB / 499.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001256/0.1311, allocations: 51.98 kB / 499.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1311, allocations: 0 / 499.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.469e-05/0.1311, allocations: 31.92 kB / 499.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003565/0.1315, allocations: 28.08 kB / 499.4 MB, free: 13.01 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004808/0.132, allocations: 222.8 kB / 499.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003294/0.1323, allocations: 0.6962 MB / 0.4886 GB, free: 12.03 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.978e-05/0.1323, allocations: 3.984 kB / 0.4886 GB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.359e-05/0.1323, allocations: 11.44 kB / 0.4886 GB, free: 12.01 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1323, allocations: 0 / 0.4886 GB, free: 12.01 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02489/0.1572, allocations: 2.49 MB / 0.491 GB, free: 9.609 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.233/8.39, allocations: 3.656 kB / 0.491 GB, free: 9.609 MB / 366.1 MB " [Timeout remaining time 651] (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.TestMedium.TestSat_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_TestSat.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.351304154843092] Failed to read output from testmodel.py, exit status != 0: 8.68001250969246 8.704510654 8.572842962 Calling exit ...