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.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 108 kB / 15.6 MB, free: 128 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.001222/0.001222, allocations: 196.6 kB / 16.53 MB, free: 6.672 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.333/1.333, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1086/0.1086, allocations: 2.761 MB / 293.2 MB, free: 3.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 63.89 kB / 354.5 MB, free: 4.301 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08001/0.08142, allocations: 50.24 MB / 404.7 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.007617/0.08907, allocations: 7.309 MB / 412.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 8.887e-06/0.08911, allocations: 3.984 kB / 412.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.848e-05/0.08913, allocations: 8 kB / 412.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.082e-05/0.08916, allocations: 0 / 412.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003038/0.08948, allocations: 108.3 kB / 412.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.028e-06/0.08949, allocations: 0 / 412.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.986e-05/0.08954, allocations: 8 kB / 412.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.964e-05/0.08958, allocations: 0 / 412.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02008/0.1097, allocations: 34.19 kB / 412.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.406e-05/0.1097, allocations: 7.984 kB / 412.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.544e-06/0.1097, allocations: 0 / 412.2 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.981e-06/0.1098, allocations: 4 kB / 412.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.205e-06/0.1098, allocations: 0 / 412.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.376e-05/0.1098, allocations: 0 / 412.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.204e-05/0.1099, allocations: 0 / 412.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1099, allocations: 4 kB / 412.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.1099, allocations: 0 / 412.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.074e-05/0.1099, allocations: 0 / 412.2 MB, free: 10.5 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.0003268/0.1103, allocations: 307.6 kB / 412.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/0.1104, allocations: 12.06 kB / 412.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.311e-05/0.1104, allocations: 34.69 kB / 412.6 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.909e-05/0.1105, allocations: 8.844 kB / 412.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001297/0.1106, allocations: 168.4 kB / 412.7 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.1106, allocations: 384 / 412.7 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.539e-05/0.1107, allocations: 4.312 kB / 412.8 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.646e-05/0.1108, allocations: 33.64 kB / 412.8 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.1108, allocations: 0 / 412.8 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-06/0.1108, allocations: 0 / 412.8 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.1108, allocations: 3.984 kB / 412.8 MB, free: 9.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.305e-05/0.1109, allocations: 0 / 412.8 MB, free: 9.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003786/0.1113, allocations: 387.5 kB / 413.2 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000101/0.1114, allocations: 169.1 kB / 413.3 MB, free: 9.234 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.479e-05/0.1114, allocations: 80.17 kB / 413.4 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.435e-05/0.1115, allocations: 83.28 kB / 413.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.08e-05/0.1115, allocations: 109.8 kB / 413.6 MB, free: 8.953 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.683e-06/0.1116, allocations: 0 / 413.6 MB, free: 8.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 9.729e-05/0.1117, allocations: 25.7 kB / 413.6 MB, free: 8.922 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.902e-05/0.1117, allocations: 130.6 kB / 413.8 MB, free: 8.781 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001007/0.1119, allocations: 101.8 kB / 413.9 MB, free: 8.672 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.287e-05/0.1119, allocations: 25.7 kB / 413.9 MB, free: 8.641 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.965e-05/0.1119, allocations: 80.14 kB / 414 MB, free: 8.559 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.697e-06/0.112, allocations: 128 / 414 MB, free: 8.559 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.544e-05/0.112, allocations: 17.72 kB / 414 MB, free: 8.535 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.1122, allocations: 318.8 kB / 414.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.263e-05/0.1122, allocations: 0 / 414.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.506e-06/0.1122, allocations: 0 / 414.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.669e-05/0.1123, allocations: 8.859 kB / 414.3 MB, free: 8.203 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1123, allocations: 0 / 414.3 MB, free: 8.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001197/0.1124, allocations: 29.7 kB / 414.3 MB, free: 8.168 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.1125, allocations: 12.08 kB / 414.3 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.1125, allocations: 0 / 414.3 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.1125, allocations: 3.938 kB / 414.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.909e-05/0.1126, allocations: 4 kB / 414.3 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.1126, allocations: 0 / 414.3 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.346e-05/0.1126, allocations: 4 kB / 414.3 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.586e-06/0.1126, allocations: 0 / 414.3 MB, free: 8.145 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): 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.0001207/0.1128, allocations: 197 kB / 414.5 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.823e-05/0.1129, allocations: 105 kB / 414.6 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.159e-05/0.113, allocations: 108 kB / 414.7 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.537e-05/0.1131, allocations: 180.2 kB / 414.9 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-05/0.1132, allocations: 180.3 kB / 415.1 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.33e-05/0.1133, allocations: 184.2 kB / 415.3 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003145/0.1136, allocations: 401.2 kB / 415.7 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.091e-05/0.1136, allocations: 113 kB / 415.8 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.421e-05/0.1137, allocations: 105 kB / 415.9 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.45e-05/0.1138, allocations: 176.3 kB / 416.1 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.429e-05/0.1139, allocations: 180.2 kB / 416.2 MB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.962e-05/0.114, allocations: 180.3 kB / 416.4 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.545e-05/0.1141, allocations: 192.2 kB / 416.6 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001732/0.1143, allocations: 303.8 kB / 416.9 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.696e-05/0.1144, allocations: 182 kB / 417.1 MB, free: 5.227 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.606e-05/0.1145, allocations: 180.2 kB / 417.2 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.1146, allocations: 104.9 kB / 417.3 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.582e-05/0.1148, allocations: 184.3 kB / 417.5 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.887e-05/0.1148, allocations: 101 kB / 417.6 MB, free: 4.641 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.64e-05/0.1149, allocations: 75.28 kB / 417.7 MB, free: 4.566 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.7e-07/0.1149, allocations: 3.938 kB / 417.7 MB, free: 4.562 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004193/0.1153, allocations: 4 kB / 417.7 MB, free: 4.559 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 (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.0004678/0.1158, allocations: 0.8048 MB / 418.5 MB, free: 3.727 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.266e-05/0.1159, allocations: 4 kB / 418.5 MB, free: 3.723 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1159, allocations: 0 / 418.5 MB, free: 3.723 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.948e-06/0.1159, allocations: 7.938 kB / 418.5 MB, free: 3.715 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005342/0.1165, allocations: 455.8 kB / 419 MB, free: 3.266 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005123/0.117, allocations: 194.4 kB / 419.2 MB, free: 3.035 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003021/0.1173, allocations: 0.6729 MB / 419.8 MB, free: 2.336 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.693e-05/0.1174, allocations: 0 / 419.8 MB, free: 2.336 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.231e-05/0.1174, allocations: 7.438 kB / 419.8 MB, free: 2.328 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1174, allocations: 0 / 419.8 MB, free: 2.328 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02083/0.1382, allocations: 0.8571 MB / 420.7 MB, free: 1.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.988/7.126, allocations: 11.84 kB / 420.7 MB, free: 1.508 MB / 350.1 MB (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)