Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestState.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: translateModel(ExternalMedia.Test.TestMedium.TestState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestState") translateModel(ExternalMedia.Test.TestMedium.TestState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008378/0.0008379, allocations: 86.17 kB / 15.06 MB, free: 1.09 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.0009824/0.0009823, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.596/1.596, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1674/0.1674, allocations: 2.787 MB / 293.9 MB, free: 4.289 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003551/0.0003552, allocations: 8 kB / 355.6 MB, free: 4.359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1226, allocations: 51.26 MB / 406.9 MB, free: 1.055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.00749/0.1301, allocations: 6.818 MB / 413.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 5.214e-05/0.1302, allocations: 31.88 kB / 413.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.893e-05/0.1303, allocations: 0 / 413.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002221/0.1305, allocations: 75.64 kB / 413.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.652e-05/0.1305, allocations: 23.83 kB / 413.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001611/0.1307, allocations: 35.77 kB / 413.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.518e-05/0.1308, allocations: 35.69 kB / 413.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.42e-05/0.1309, allocations: 11.98 kB / 413.9 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.404e-05/0.1309, allocations: 11.94 kB / 413.9 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.412e-05/0.1309, allocations: 11.94 kB / 413.9 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.678e-06/0.131, allocations: 0 / 413.9 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001827/0.1311, allocations: 39.94 kB / 414 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.135e-06/0.1312, allocations: 0 / 414 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.986e-05/0.1312, allocations: 33.7 kB / 414 MB, free: 9.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001008/0.1313, allocations: 39.88 kB / 414 MB, free: 9.855 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.1313, allocations: 4 kB / 414 MB, free: 9.852 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1313, allocations: 0 / 414 MB, free: 9.852 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.1313, allocations: 7.938 kB / 414 MB, free: 9.844 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0002968/0.1316, allocations: 339.2 kB / 414.4 MB, free: 9.465 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.1317, allocations: 8.031 kB / 414.4 MB, free: 9.457 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.834e-05/0.1317, allocations: 7.906 kB / 414.4 MB, free: 9.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.752e-05/0.1318, allocations: 163 kB / 414.5 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.1318, allocations: 0 / 414.5 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.297e-06/0.1319, allocations: 0 / 414.5 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001071/0.132, allocations: 53.69 kB / 414.6 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.261e-06/0.132, allocations: 0 / 414.6 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.132, allocations: 7.953 kB / 414.6 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.132, allocations: 4 kB / 414.6 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.664e-05/0.132, allocations: 31.92 kB / 414.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001503/0.1322, allocations: 165.6 kB / 414.8 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.362e-05/0.1323, allocations: 58.55 kB / 414.9 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.679e-05/0.1323, allocations: 40.88 kB / 414.9 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.1324, allocations: 0 / 414.9 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/0.1324, allocations: 38.56 kB / 414.9 MB, free: 8.781 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.273e-06/0.1324, allocations: 0 / 414.9 MB, free: 8.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0001951/0.1326, allocations: 129.5 kB / 415.1 MB, free: 8.648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.188e-05/0.1326, allocations: 51.41 kB / 415.1 MB, free: 8.586 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.493e-05/0.1327, allocations: 89.86 kB / 415.2 MB, free: 8.488 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.07e-05/0.1327, allocations: 25.7 kB / 415.2 MB, free: 8.457 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.399e-05/0.1327, allocations: 88.08 kB / 415.3 MB, free: 8.367 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.455e-05/0.1328, allocations: 55.5 kB / 415.4 MB, free: 8.312 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.305e-06/0.1328, allocations: 0 / 415.4 MB, free: 8.312 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.753e-05/0.1329, allocations: 318.9 kB / 415.7 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.787e-05/0.1329, allocations: 24 kB / 415.7 MB, free: 7.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.541e-05/0.133, allocations: 27.98 kB / 415.7 MB, free: 7.941 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.2e-05/0.133, allocations: 27.09 kB / 415.8 MB, free: 7.918 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.133, allocations: 0 / 415.8 MB, free: 7.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001201/0.1332, allocations: 97.45 kB / 415.8 MB, free: 7.816 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.1332, allocations: 10.34 kB / 415.9 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.1332, allocations: 0 / 415.9 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.1332, allocations: 0 / 415.9 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.92e-07/0.1332, allocations: 4.062 kB / 415.9 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.1332, allocations: 3.953 kB / 415.9 MB, free: 7.801 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.116e-05/0.1333, allocations: 4 kB / 415.9 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-06/0.1333, allocations: 4 kB / 415.9 MB, free: 7.793 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: 1 (state.phase) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.051e-05/0.1334, allocations: 109.8 kB / 416 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.692e-05/0.1334, allocations: 7.906 kB / 416 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001675/0.1336, allocations: 109.6 kB / 416.1 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.1336, allocations: 7.938 kB / 416.1 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1336, allocations: 0 / 416.1 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.1336, allocations: 3.953 kB / 416.1 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000115/0.1337, allocations: 177.6 kB / 416.3 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1337, allocations: 0 / 416.3 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.1337, allocations: 0 / 416.3 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1338, allocations: 0 / 416.3 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.461e-06/0.1338, allocations: 0 / 416.3 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1338, allocations: 0 / 416.3 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1338, allocations: 4.031 kB / 416.3 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001143/0.1339, allocations: 121 kB / 416.4 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.355e-05/0.1339, allocations: 85.05 kB / 416.5 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.208e-06/0.134, allocations: 0 / 416.5 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.926e-05/0.134, allocations: 0 / 416.5 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.559e-05/0.134, allocations: 3.984 kB / 416.5 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.134, allocations: 3.938 kB / 416.5 MB, free: 7.074 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.503e-05/0.134, allocations: 79.31 kB / 416.6 MB, free: 6.996 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.134, allocations: 0 / 416.6 MB, free: 6.996 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001994/0.1342, allocations: 20 kB / 416.6 MB, free: 6.977 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: 1 (state.phase) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002844/0.1345, allocations: 141.1 kB / 416.7 MB, free: 6.836 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001095/0.1347, allocations: 63.98 kB / 416.8 MB, free: 6.773 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1347, allocations: 0 / 416.8 MB, free: 6.773 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.444e-05/0.1347, allocations: 36 kB / 416.8 MB, free: 6.738 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003596/0.1351, allocations: 40.03 kB / 416.9 MB, free: 6.699 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000368/0.1355, allocations: 270.1 kB / 417.1 MB, free: 6.406 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/0.1357, allocations: 0.6889 MB / 417.8 MB, free: 5.691 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.791e-05/0.1358, allocations: 4 kB / 417.8 MB, free: 5.688 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.736e-06/0.1358, allocations: 7.438 kB / 417.8 MB, free: 5.68 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1358, allocations: 0 / 417.8 MB, free: 5.68 MB / 350.1 MB Notification: Performance of Templates: time 0.003744/0.1395, allocations: 1.381 MB / 419.2 MB, free: 4.324 MB / 350.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.makefile Environment - environmentSimulation: (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestState.sim & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestState -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe 2>&1) Environment - environmentSimulation: