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.00101/0.00101, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001085/0.001085, allocations: 199.2 kB / 16.14 MB, free: 6.715 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.344/1.344, allocations: 222.9 MB / 239.8 MB, free: 4.648 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1339/0.1339, allocations: 2.758 MB / 292.7 MB, free: 3.785 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 55.91 kB / 353.8 MB, free: 4.973 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09/0.09117, allocations: 50.24 MB / 404 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.007807/0.09901, allocations: 7.336 MB / 411.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 7.734e-06/0.09906, allocations: 3.984 kB / 411.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.092e-05/0.09907, allocations: 0 / 411.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.859e-05/0.0991, allocations: 0 / 411.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002883/0.09941, allocations: 108.4 kB / 411.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.865e-06/0.09943, allocations: 4 kB / 411.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.168e-05/0.09947, allocations: 4 kB / 411.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.309e-05/0.0995, allocations: 3.984 kB / 411.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02143/0.1209, allocations: 31.47 kB / 411.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.22e-05/0.121, allocations: 4 kB / 411.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.124e-05/0.121, allocations: 3.984 kB / 411.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.871e-06/0.121, allocations: 0 / 411.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.388e-06/0.1211, allocations: 0 / 411.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.996e-05/0.1211, allocations: 3.938 kB / 411.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 4.254e-05/0.1211, allocations: 0 / 411.5 MB, free: 11.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1212, allocations: 4 kB / 411.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1212, allocations: 4 kB / 411.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.1212, allocations: 0 / 411.6 MB, free: 11.14 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.0003038/0.1215, allocations: 303.6 kB / 411.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.1215, allocations: 16.08 kB / 411.9 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.007e-05/0.1216, allocations: 30.75 kB / 411.9 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.797e-05/0.1216, allocations: 8.844 kB / 411.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00012/0.1218, allocations: 168.3 kB / 412.1 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.959e-06/0.1218, allocations: 384 / 412.1 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.222e-06/0.1218, allocations: 384 / 412.1 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001001/0.1219, allocations: 37.64 kB / 412.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.1219, allocations: 0 / 412.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.215e-06/0.1219, allocations: 0 / 412.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.122, allocations: 0 / 412.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.763e-05/0.122, allocations: 0 / 412.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003556/0.1223, allocations: 383.5 kB / 412.5 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001033/0.1225, allocations: 173.1 kB / 412.7 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.887e-05/0.1225, allocations: 84.08 kB / 412.7 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.065e-05/0.1226, allocations: 75.28 kB / 412.8 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.564e-05/0.1226, allocations: 113.9 kB / 412.9 MB, free: 9.602 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.383e-06/0.1226, allocations: 0 / 412.9 MB, free: 9.602 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 8.39e-05/0.1227, allocations: 25.7 kB / 412.9 MB, free: 9.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.224e-05/0.1228, allocations: 142.6 kB / 413.1 MB, free: 9.418 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.577e-05/0.1229, allocations: 93.86 kB / 413.2 MB, free: 9.316 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.1229, allocations: 25.7 kB / 413.2 MB, free: 9.285 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.371e-05/0.123, allocations: 80.14 kB / 413.3 MB, free: 9.203 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.055e-06/0.123, allocations: 0 / 413.3 MB, free: 9.203 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.703e-05/0.1231, allocations: 9.719 kB / 413.3 MB, free: 9.188 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.1232, allocations: 318.8 kB / 413.6 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.448e-05/0.1232, allocations: 8.125 kB / 413.6 MB, free: 8.859 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.69e-06/0.1232, allocations: 3.938 kB / 413.6 MB, free: 8.855 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.442e-05/0.1233, allocations: 4.859 kB / 413.6 MB, free: 8.848 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1233, allocations: 4 kB / 413.6 MB, free: 8.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001122/0.1234, allocations: 37.62 kB / 413.7 MB, free: 8.801 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.1234, allocations: 4 kB / 413.7 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.1234, allocations: 0 / 413.7 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.1235, allocations: 0 / 413.7 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.012e-05/0.1235, allocations: 8.094 kB / 413.7 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.1235, allocations: 0 / 413.7 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.682e-05/0.1236, allocations: 0 / 413.7 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.658e-06/0.1236, allocations: 0 / 413.7 MB, free: 8.789 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.0001105/0.1237, allocations: 185.1 kB / 413.9 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.876e-05/0.1238, allocations: 109 kB / 414 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.91e-05/0.1238, allocations: 116.1 kB / 414.1 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.897e-05/0.1239, allocations: 180.3 kB / 414.2 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.921e-05/0.124, allocations: 176.3 kB / 414.4 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-05/0.1241, allocations: 184.2 kB / 414.6 MB, free: 7.816 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002871/0.1244, allocations: 405.2 kB / 415 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.084e-05/0.1245, allocations: 104.9 kB / 415.1 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.181e-05/0.1245, allocations: 105 kB / 415.2 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.686e-05/0.1246, allocations: 180.3 kB / 415.4 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.415e-05/0.1247, allocations: 180.2 kB / 415.6 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.813e-05/0.1248, allocations: 180.2 kB / 415.7 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.058e-05/0.1249, allocations: 184.2 kB / 415.9 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001674/0.125, allocations: 307.7 kB / 416.2 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.907e-05/0.1252, allocations: 186.1 kB / 416.4 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.364e-05/0.1252, allocations: 176.3 kB / 416.6 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001236/0.1254, allocations: 108.9 kB / 416.7 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.547e-05/0.1255, allocations: 184.3 kB / 416.8 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.877e-05/0.1255, allocations: 108.9 kB / 417 MB, free: 5.281 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.217e-05/0.1256, allocations: 79.28 kB / 417 MB, free: 5.203 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1256, allocations: 0 / 417 MB, free: 5.203 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003787/0.126, allocations: 3.984 kB / 417 MB, free: 5.199 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.0004369/0.1264, allocations: 0.7971 MB / 417.8 MB, free: 4.375 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.304e-05/0.1265, allocations: 4.359 kB / 417.8 MB, free: 4.371 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.1265, allocations: 0 / 417.8 MB, free: 4.371 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.974e-06/0.1265, allocations: 11.88 kB / 417.8 MB, free: 4.359 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005465/0.1271, allocations: 0.5185 MB / 418.4 MB, free: 3.836 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004698/0.1276, allocations: 192.2 kB / 418.6 MB, free: 3.605 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003461/0.1279, allocations: 0.6692 MB / 419.2 MB, free: 2.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.555e-05/0.128, allocations: 0 / 419.2 MB, free: 2.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.848e-05/0.128, allocations: 7.438 kB / 419.2 MB, free: 2.902 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.128, allocations: 4 kB / 419.2 MB, free: 2.898 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01249/0.1405, allocations: 0.7469 MB / 420 MB, free: 2.223 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002485/0.1408, allocations: 192.4 kB / 420.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.619/1.759, allocations: 4 kB / 420.2 MB, free: 1.961 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe 2>&1)