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.001093/0.001093, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.325/1.325, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1079/0.1079, allocations: 2.77 MB / 293.2 MB, free: 3.582 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 63.91 kB / 354.5 MB, free: 4.301 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07903/0.08027, allocations: 50.23 MB / 404.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestSat): time 0.007852/0.08815, allocations: 7.52 MB / 412.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000435/0.08862, allocations: 0.5604 MB / 412.8 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.062e-05/0.08865, allocations: 0 / 412.8 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001885/0.08885, allocations: 63.67 kB / 412.9 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.15e-05/0.0889, allocations: 15.86 kB / 412.9 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00012/0.08903, allocations: 35.75 kB / 412.9 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.215e-05/0.0891, allocations: 35.69 kB / 413 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.343e-05/0.08915, allocations: 7.984 kB / 413 MB, free: 9.742 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.247e-05/0.08918, allocations: 11.94 kB / 413 MB, free: 9.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.603e-05/0.08923, allocations: 11.94 kB / 413 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.859e-06/0.08925, allocations: 4 kB / 413 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001704/0.08942, allocations: 35.94 kB / 413 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.628e-06/0.08944, allocations: 0 / 413 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.226e-05/0.08948, allocations: 15.88 kB / 413.1 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001362/0.08962, allocations: 47.88 kB / 413.1 MB, free: 9.617 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.08963, allocations: 0 / 413.1 MB, free: 9.617 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.08963, allocations: 0 / 413.1 MB, free: 9.617 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.08964, allocations: 0 / 413.1 MB, free: 9.617 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.0002953/0.08994, allocations: 339.4 kB / 413.4 MB, free: 9.238 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.08998, allocations: 8.031 kB / 413.4 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.018e-05/0.09002, allocations: 42.73 kB / 413.5 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.186e-05/0.09005, allocations: 8.844 kB / 413.5 MB, free: 9.172 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.667e-05/0.09014, allocations: 168.3 kB / 413.7 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.167e-06/0.09016, allocations: 384 / 413.7 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.325e-06/0.09017, allocations: 384 / 413.7 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001009/0.09027, allocations: 57.62 kB / 413.7 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.09029, allocations: 0 / 413.7 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.52e-06/0.0903, allocations: 0 / 413.7 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.09031, allocations: 4 kB / 413.7 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.147e-05/0.09035, allocations: 19.98 kB / 413.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001384/0.09049, allocations: 173.6 kB / 413.9 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.95e-05/0.09056, allocations: 58.44 kB / 414 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.53e-05/0.0906, allocations: 36.89 kB / 414 MB, free: 8.559 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.84e-05/0.09064, allocations: 7.922 kB / 414 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.036e-05/0.09066, allocations: 34.56 kB / 414 MB, free: 8.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.032e-06/0.09067, allocations: 0 / 414 MB, free: 8.508 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0001793/0.09085, allocations: 121.8 kB / 414.2 MB, free: 8.383 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.864e-05/0.0909, allocations: 63.36 kB / 414.2 MB, free: 8.309 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.979e-05/0.09094, allocations: 89.86 kB / 414.3 MB, free: 8.211 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.052e-05/0.09095, allocations: 25.7 kB / 414.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.271e-05/0.09098, allocations: 84.38 kB / 414.4 MB, free: 8.094 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.932e-05/0.09104, allocations: 43.3 kB / 414.5 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-05/0.09107, allocations: 17.72 kB / 414.5 MB, free: 8.027 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.326e-05/0.09117, allocations: 314.8 kB / 414.8 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.682e-05/0.0912, allocations: 24 kB / 414.8 MB, free: 7.688 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.161e-05/0.09123, allocations: 27.98 kB / 414.8 MB, free: 7.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.071e-05/0.09131, allocations: 64.22 kB / 414.9 MB, free: 7.598 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.09132, allocations: 4 kB / 414.9 MB, free: 7.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001412/0.09147, allocations: 89.61 kB / 415 MB, free: 7.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.09149, allocations: 8 kB / 415 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.09151, allocations: 0 / 415 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.09152, allocations: 3.938 kB / 415 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.09153, allocations: 0 / 415 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.09154, allocations: 0 / 415 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.24e-05/0.09157, allocations: 11.91 kB / 415 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-06/0.09159, allocations: 4 kB / 415 MB, free: 7.473 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.243e-05/0.09165, allocations: 105.8 kB / 415.1 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.099e-05/0.09167, allocations: 7.844 kB / 415.1 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.37e-05/0.0917, allocations: 8.094 kB / 415.1 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.09171, allocations: 3.984 kB / 415.1 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.09172, allocations: 0 / 415.1 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-06/0.09173, allocations: 0 / 415.1 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.891e-05/0.09183, allocations: 161.7 kB / 415.3 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.09184, allocations: 11.94 kB / 415.3 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.09185, allocations: 0 / 415.3 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.09186, allocations: 3.984 kB / 415.3 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.139e-06/0.09187, allocations: 3.938 kB / 415.3 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.09187, allocations: 3.984 kB / 415.3 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.09188, allocations: 0 / 415.3 MB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001131/0.092, allocations: 121 kB / 415.4 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.726e-05/0.09204, allocations: 92.98 kB / 415.5 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.736e-06/0.09206, allocations: 0 / 415.5 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.733e-05/0.09208, allocations: 4.031 kB / 415.5 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.716e-06/0.0921, allocations: 3.938 kB / 415.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-06/0.0921, allocations: 0 / 415.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.348e-05/0.09213, allocations: 79.28 kB / 415.6 MB, free: 6.781 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09214, allocations: 0 / 415.6 MB, free: 6.781 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001933/0.09233, allocations: 8 kB / 415.6 MB, free: 6.773 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.0004538/0.09279, allocations: 0.6727 MB / 416.3 MB, free: 6.074 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001081/0.09291, allocations: 71.95 kB / 416.4 MB, free: 6.004 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.09292, allocations: 4.062 kB / 416.4 MB, free: 6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.238e-05/0.09296, allocations: 35.98 kB / 416.4 MB, free: 5.965 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003414/0.09331, allocations: 29.69 kB / 416.4 MB, free: 5.938 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004057/0.09372, allocations: 231 kB / 416.7 MB, free: 5.672 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002085/0.09394, allocations: 0.6807 MB / 417.3 MB, free: 4.965 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.759e-05/0.09397, allocations: 4 kB / 417.3 MB, free: 4.961 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.696e-05/0.094, allocations: 11.44 kB / 417.4 MB, free: 4.949 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.09401, allocations: 4 kB / 417.4 MB, free: 4.945 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01737/0.1114, allocations: 2.447 MB / 419.8 MB, free: 2.566 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.195/7.306, allocations: 7.797 kB / 419.8 MB, free: 2.559 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)