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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006036/0.006036, allocations: 102.2 kB / 15.73 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 199.5 kB / 16.68 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1596/0.1596, allocations: 2.762 MB / 293.3 MB, free: 3.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001923, allocations: 63.89 kB / 405.4 MB, free: 1.426 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2547, allocations: 50.24 MB / 455.6 MB, free: 20.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestSat): time 0.00774/0.2625, allocations: 7.519 MB / 463.1 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003491/0.2629, allocations: 0.5683 MB / 463.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.681e-05/0.2629, allocations: 3.281 kB / 463.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002186/0.2632, allocations: 65.22 kB / 463.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.216e-05/0.2632, allocations: 17.44 kB / 463.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001492/0.2634, allocations: 30.09 kB / 463.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.655e-05/0.2635, allocations: 40.25 kB / 463.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.627e-05/0.2635, allocations: 3.672 kB / 463.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.521e-05/0.2635, allocations: 15 kB / 463.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.63e-05/0.2636, allocations: 10.12 kB / 463.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.088e-05/0.2636, allocations: 0 / 463.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001843/0.2638, allocations: 30.5 kB / 463.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.106e-05/0.2638, allocations: 3.031 kB / 463.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.246e-05/0.2639, allocations: 19.38 kB / 463.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001604/0.264, allocations: 48.75 kB / 464 MB, free: 14.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.264, allocations: 4 kB / 464 MB, free: 14.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.264, allocations: 0 / 464 MB, free: 14.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.2641, allocations: 3.062 kB / 464 MB, free: 14.75 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.0002929/0.2644, allocations: 337.7 kB / 464.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.2644, allocations: 9.094 kB / 464.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.697e-05/0.2644, allocations: 33.66 kB / 464.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.263e-05/0.2645, allocations: 4.891 kB / 464.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.013e-05/0.2645, allocations: 164.3 kB / 464.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.055e-06/0.2645, allocations: 7.219 kB / 464.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.758e-06/0.2646, allocations: 4.375 kB / 464.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001094/0.2647, allocations: 57.28 kB / 464.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.2647, allocations: 3.984 kB / 464.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.084e-06/0.2647, allocations: 0 / 464.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.341e-05/0.2647, allocations: 3.422 kB / 464.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.974e-05/0.2648, allocations: 28.16 kB / 464.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001195/0.2649, allocations: 169.3 kB / 464.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.095e-05/0.265, allocations: 54.39 kB / 464.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.407e-05/0.265, allocations: 41.66 kB / 464.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.048e-05/0.265, allocations: 3.938 kB / 464.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.344e-05/0.2651, allocations: 30.56 kB / 464.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 9.62e-07/0.2651, allocations: 7.219 kB / 464.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0002075/0.2653, allocations: 122.6 kB / 465.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.652e-05/0.2653, allocations: 52.06 kB / 465.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.194e-05/0.2653, allocations: 93.02 kB / 465.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.636e-06/0.2653, allocations: 29.7 kB / 465.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.22e-05/0.2654, allocations: 84.41 kB / 465.3 MB, free: 13.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.959e-05/0.2654, allocations: 46.44 kB / 465.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.145e-05/0.2655, allocations: 17.88 kB / 465.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.544e-05/0.2655, allocations: 316.7 kB / 465.7 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.964e-05/0.2656, allocations: 22.3 kB / 465.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.685e-05/0.2656, allocations: 23.73 kB / 465.7 MB, free: 13.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.455e-05/0.2657, allocations: 62.52 kB / 465.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2657, allocations: 0 / 465.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 9.384e-05/0.2658, allocations: 98.36 kB / 465.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.2658, allocations: 6.438 kB / 465.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.2658, allocations: 3.984 kB / 465.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.2658, allocations: 0.5156 kB / 465.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.843e-06/0.2658, allocations: 3 kB / 465.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.2658, allocations: 0.6094 kB / 465.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.91e-05/0.2659, allocations: 7.891 kB / 465.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.2659, allocations: 0 / 465.9 MB, free: 12.9 MB / 350.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 6.357e-05/0.266, allocations: 115 kB / 466 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.508e-06/0.266, allocations: 8.625 kB / 466 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.957e-05/0.266, allocations: 7.797 kB / 466 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-06/0.266, allocations: 5.031 kB / 466 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.266, allocations: 0.6094 kB / 466 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.2661, allocations: 0 / 466 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.145e-05/0.2662, allocations: 168.5 kB / 466.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2662, allocations: 3.938 kB / 466.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.252e-06/0.2662, allocations: 3.781 kB / 466.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.2662, allocations: 0 / 466.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/0.2662, allocations: 0 / 466.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.2662, allocations: 8.453 kB / 466.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2662, allocations: 0 / 466.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001162/0.2663, allocations: 119 kB / 466.3 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.011e-05/0.2664, allocations: 88.41 kB / 466.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.059e-05/0.2664, allocations: 0.6094 kB / 466.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.708e-05/0.2664, allocations: 0 / 466.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.961e-05/0.2664, allocations: 0.6562 kB / 466.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.2664, allocations: 0 / 466.4 MB, free: 12.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 1.504e-05/0.2665, allocations: 82.25 kB / 466.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2665, allocations: 0 / 466.5 MB, free: 12.29 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002033/0.2667, allocations: 13.39 kB / 466.5 MB, free: 12.28 MB / 350.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.0005169/0.2672, allocations: 0.6862 MB / 467.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000134/0.2673, allocations: 62.41 kB / 467.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2673, allocations: 0 / 467.3 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.147e-05/0.2674, allocations: 37.25 kB / 467.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004041/0.2678, allocations: 23.33 kB / 467.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000433/0.2682, allocations: 221.4 kB / 467.5 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001158/0.2684, allocations: 0.6895 MB / 468.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.753e-05/0.2684, allocations: 4 kB / 468.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.056e-05/0.2684, allocations: 12.38 kB / 468.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2684, allocations: 0 / 468.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02489/0.2933, allocations: 2.495 MB / 470.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.138/8.432, allocations: 4.344 kB / 470.7 MB, free: 10.16 MB / 350.1 MB (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)