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.001537/0.001537, allocations: 107.8 kB / 16.45 MB, free: 6.512 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.001779/0.001779, allocations: 212.2 kB / 19.43 MB, free: 3.648 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.513/1.513, allocations: 230.6 MB / 252.8 MB, free: 8.953 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.01593/0.01593, allocations: 2.793 MB / 311.6 MB, free: 1.453 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.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: 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.001978/0.001978, allocations: 67.83 kB / 433.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1166, allocations: 54.13 MB / 487.6 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.01503/0.1316, allocations: 7.407 MB / 495 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 1.854e-05/0.1317, allocations: 11.98 kB / 495 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.861e-05/0.1317, allocations: 0 / 495 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.97e-05/0.1317, allocations: 0 / 495 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00049/0.1322, allocations: 104.4 kB / 495.2 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.807e-06/0.1322, allocations: 0 / 495.2 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.562e-05/0.1323, allocations: 7.938 kB / 495.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.168e-05/0.1323, allocations: 4 kB / 495.2 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02385/0.1562, allocations: 43.22 kB / 495.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.133e-05/0.1562, allocations: 0 / 495.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.808e-06/0.1562, allocations: 3.938 kB / 495.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.129e-06/0.1562, allocations: 0 / 495.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.536e-06/0.1562, allocations: 0 / 495.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.804e-05/0.1562, allocations: 0 / 495.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.972e-05/0.1563, allocations: 7.938 kB / 495.2 MB, free: 1.523 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1563, allocations: 0 / 495.2 MB, free: 1.523 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.1563, allocations: 0 / 495.2 MB, free: 1.523 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.1563, allocations: 4 kB / 495.2 MB, free: 1.52 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004503/0.1567, allocations: 307.6 kB / 495.5 MB, free: 1.172 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/0.1568, allocations: 11.98 kB / 495.5 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.171e-05/0.1569, allocations: 34.73 kB / 495.6 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.502e-05/0.1569, allocations: 0.9375 kB / 495.6 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001587/0.157, allocations: 160.4 kB / 495.7 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.1571, allocations: 4.375 kB / 495.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.1571, allocations: 384 / 495.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001289/0.1572, allocations: 41.58 kB / 495.8 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.1572, allocations: 4 kB / 495.8 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.1572, allocations: 0 / 495.8 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.1572, allocations: 0 / 495.8 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.445e-05/0.1572, allocations: 4 kB / 495.8 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000482/0.1577, allocations: 375.5 kB / 496.1 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002218/0.158, allocations: 177.2 kB / 496.3 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.216e-05/0.158, allocations: 84.08 kB / 496.4 MB, free: 180 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.942e-05/0.1581, allocations: 75.28 kB / 496.5 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001707/0.1582, allocations: 105.8 kB / 496.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 1.373e-06/0.1582, allocations: 0 / 496.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 9.823e-05/0.1583, allocations: 25.7 kB / 496.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.757e-05/0.1584, allocations: 126.7 kB / 496.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002049/0.1586, allocations: 105.8 kB / 496.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.1587, allocations: 25.7 kB / 496.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.152e-05/0.1587, allocations: 88.03 kB / 496.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.637e-06/0.1587, allocations: 0 / 496.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.885e-05/0.1588, allocations: 13.72 kB / 497 MB, free: 15.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001888/0.159, allocations: 314.8 kB / 497.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.165e-05/0.159, allocations: 3.938 kB / 497.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.384e-06/0.159, allocations: 4.125 kB / 497.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.929e-05/0.159, allocations: 8.859 kB / 497.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.159, allocations: 0 / 497.3 MB, free: 15.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000144/0.1592, allocations: 37.69 kB / 497.3 MB, free: 15.19 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.1592, allocations: 7.938 kB / 497.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.1592, allocations: 4 kB / 497.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.369e-05/0.1592, allocations: 0 / 497.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.109e-05/0.1593, allocations: 3.938 kB / 497.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.1593, allocations: 3.984 kB / 497.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.8e-05/0.1593, allocations: 4.094 kB / 497.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.1593, allocations: 3.938 kB / 497.3 MB, free: 15.16 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): 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 0.0001602/0.1595, allocations: 189.1 kB / 497.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.473e-05/0.1596, allocations: 101 kB / 497.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.895e-05/0.1597, allocations: 108.1 kB / 497.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001267/0.1598, allocations: 188.2 kB / 497.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001177/0.1599, allocations: 184.3 kB / 498.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001195/0.16, allocations: 180.2 kB / 498.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003829/0.1604, allocations: 401.2 kB / 498.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.877e-05/0.1605, allocations: 105 kB / 498.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.029e-05/0.1606, allocations: 108.9 kB / 498.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001228/0.1607, allocations: 184.3 kB / 499.1 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001092/0.1608, allocations: 180.2 kB / 499.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001879/0.161, allocations: 184.2 kB / 499.4 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001165/0.1611, allocations: 176.3 kB / 499.6 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003217/0.1614, allocations: 307.7 kB / 499.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002158/0.1616, allocations: 194 kB / 0.4883 GB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.1618, allocations: 176.3 kB / 0.4885 GB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.1619, allocations: 105 kB / 0.4886 GB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001462/0.162, allocations: 184.2 kB / 0.4888 GB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.455e-05/0.1621, allocations: 101 kB / 0.4889 GB, free: 11.65 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.105e-05/0.1622, allocations: 79.28 kB / 0.489 GB, free: 11.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1622, allocations: 0 / 0.489 GB, free: 11.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003591/0.1625, allocations: 4 kB / 0.489 GB, free: 11.57 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 (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.0007591/0.1633, allocations: 0.8008 MB / 0.4897 GB, free: 10.74 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.694e-05/0.1634, allocations: 8.094 kB / 0.4898 GB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.1634, allocations: 0 / 0.4898 GB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.464e-06/0.1634, allocations: 0 / 0.4898 GB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005977/0.164, allocations: 458.6 kB / 0.4902 GB, free: 10.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005597/0.1645, allocations: 198.3 kB / 0.4904 GB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004935/0.165, allocations: 0.669 MB / 0.491 GB, free: 9.352 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.924e-05/0.165, allocations: 8 kB / 0.491 GB, free: 9.344 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.968e-05/0.1651, allocations: 7.438 kB / 0.4911 GB, free: 9.336 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1651, allocations: 0 / 0.4911 GB, free: 9.336 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02705/0.1921, allocations: 0.8784 MB / 0.4919 GB, free: 8.527 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.149/8.341, allocations: 11.05 kB / 0.4919 GB, free: 8.52 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.98863582732156] Failed to read output from testmodel.py, exit status != 0: 8.410042852163315 8.426091338 8.266609668 Calling exit ...