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.001425/0.001425, allocations: 108 kB / 15.61 MB, free: 152 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.00159/0.001591, allocations: 195.4 kB / 16.53 MB, free: 6.664 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.515/1.515, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1457/0.1457, allocations: 2.765 MB / 293.2 MB, free: 3.586 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 71.89 kB / 354.5 MB, free: 4.328 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09048/0.09186, allocations: 50.24 MB / 404.7 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.01046/0.1024, allocations: 7.305 MB / 412.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 1.036e-05/0.1024, allocations: 4 kB / 412.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.228e-05/0.1024, allocations: 0 / 412.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.396e-05/0.1025, allocations: 3.984 kB / 412.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005881/0.1031, allocations: 112.3 kB / 412.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.873e-06/0.1031, allocations: 0 / 412.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.502e-05/0.1032, allocations: 7.984 kB / 412.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.066e-05/0.1033, allocations: 0 / 412.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02021/0.1235, allocations: 43.92 kB / 412.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.642e-05/0.1236, allocations: 0 / 412.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.285e-06/0.1236, allocations: 0 / 412.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.881e-06/0.1236, allocations: 0 / 412.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.805e-06/0.1236, allocations: 0 / 412.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.131e-05/0.1236, allocations: 4 kB / 412.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.043e-05/0.1237, allocations: 7.984 kB / 412.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.1237, allocations: 0 / 412.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1237, allocations: 0 / 412.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.1237, allocations: 0 / 412.2 MB, free: 10.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.0003502/0.1241, allocations: 307.6 kB / 412.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.1242, allocations: 11.97 kB / 412.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.65e-05/0.1242, allocations: 30.75 kB / 412.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.435e-05/0.1243, allocations: 12.83 kB / 412.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001408/0.1244, allocations: 168.3 kB / 412.8 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.1245, allocations: 4.375 kB / 412.8 MB, free: 9.906 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.267e-05/0.1245, allocations: 384 / 412.8 MB, free: 9.906 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001024/0.1246, allocations: 33.64 kB / 412.8 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.1246, allocations: 0 / 412.8 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.1246, allocations: 0 / 412.8 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.1247, allocations: 4 kB / 412.8 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.275e-05/0.1247, allocations: 0 / 412.8 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003798/0.1251, allocations: 387.5 kB / 413.2 MB, free: 9.434 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000112/0.1252, allocations: 169.1 kB / 413.3 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.892e-05/0.1253, allocations: 80.14 kB / 413.4 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.067e-05/0.1253, allocations: 75.28 kB / 413.5 MB, free: 9.102 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.724e-05/0.1254, allocations: 105.8 kB / 413.6 MB, free: 8.988 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.913e-06/0.1254, allocations: 4 kB / 413.6 MB, free: 8.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001073/0.1255, allocations: 33.64 kB / 413.6 MB, free: 8.945 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.494e-05/0.1256, allocations: 126.7 kB / 413.8 MB, free: 8.809 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.1257, allocations: 97.84 kB / 413.8 MB, free: 8.703 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.1258, allocations: 25.7 kB / 413.9 MB, free: 8.672 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.105e-05/0.1258, allocations: 80.14 kB / 414 MB, free: 8.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.646e-06/0.1258, allocations: 0 / 414 MB, free: 8.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.212e-05/0.1259, allocations: 13.72 kB / 414 MB, free: 8.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.1261, allocations: 318.9 kB / 414.3 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.283e-05/0.1261, allocations: 0 / 414.3 MB, free: 8.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.177e-05/0.1261, allocations: 4 kB / 414.3 MB, free: 8.246 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.212e-05/0.1261, allocations: 4.859 kB / 414.3 MB, free: 8.238 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.1262, allocations: 3.938 kB / 414.3 MB, free: 8.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001416/0.1263, allocations: 41.62 kB / 414.3 MB, free: 8.188 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.1263, allocations: 8 kB / 414.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.1264, allocations: 96 / 414.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.1264, allocations: 4 kB / 414.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.463e-05/0.1265, allocations: 0 / 414.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.1265, allocations: 0 / 414.3 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.649e-05/0.1265, allocations: 4 kB / 414.3 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/0.1265, allocations: 3.938 kB / 414.3 MB, free: 8.168 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.0001242/0.1267, allocations: 185.1 kB / 414.5 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.249e-05/0.1268, allocations: 101 kB / 414.6 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.248e-05/0.1268, allocations: 120 kB / 414.7 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.848e-05/0.1269, allocations: 180.3 kB / 414.9 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.102e-05/0.127, allocations: 180.2 kB / 415.1 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-05/0.1271, allocations: 176.3 kB / 415.3 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00034/0.1275, allocations: 405.2 kB / 415.7 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.842e-05/0.1275, allocations: 113 kB / 415.8 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.973e-05/0.1276, allocations: 109 kB / 415.9 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.646e-05/0.1277, allocations: 180.2 kB / 416.1 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.041e-05/0.1278, allocations: 180.3 kB / 416.2 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.982e-05/0.1279, allocations: 180.2 kB / 416.4 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.529e-05/0.128, allocations: 180.2 kB / 416.6 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001836/0.1282, allocations: 311.7 kB / 416.9 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000113/0.1283, allocations: 178.1 kB / 417.1 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.978e-05/0.1285, allocations: 184.2 kB / 417.2 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001134/0.1286, allocations: 104.9 kB / 417.3 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.352e-05/0.1287, allocations: 180.3 kB / 417.5 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.732e-05/0.1287, allocations: 108.9 kB / 417.6 MB, free: 4.664 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.551e-05/0.1288, allocations: 79.28 kB / 417.7 MB, free: 4.586 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1288, allocations: 0 / 417.7 MB, free: 4.586 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004093/0.1292, allocations: 0 / 417.7 MB, free: 4.586 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.0005234/0.1298, allocations: 0.801 MB / 418.5 MB, free: 3.758 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.363e-05/0.1299, allocations: 7.938 kB / 418.5 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1299, allocations: 0 / 418.5 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.286e-06/0.1299, allocations: 0 / 418.5 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005846/0.1305, allocations: 457.6 kB / 419 MB, free: 3.301 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005399/0.1311, allocations: 202.5 kB / 419.2 MB, free: 3.062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003497/0.1314, allocations: 0.6728 MB / 419.8 MB, free: 2.363 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.012e-05/0.1315, allocations: 0 / 419.8 MB, free: 2.363 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.664e-05/0.1315, allocations: 7.438 kB / 419.8 MB, free: 2.355 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1315, allocations: 0 / 419.8 MB, free: 2.355 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02202/0.1535, allocations: 0.8546 MB / 420.7 MB, free: 1.547 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.433/7.587, allocations: 13.72 kB / 420.7 MB, free: 1.535 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)