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.000822/0.000822, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006005/0.006005, allocations: 169.6 kB / 16.26 MB, free: 6.613 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.459/1.459, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1629/0.1629, allocations: 2.783 MB / 294.2 MB, free: 4.34 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003093/0.0003093, allocations: 8 kB / 356.2 MB, free: 3.992 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1214, allocations: 51.26 MB / 407.5 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.008135/0.1297, allocations: 7.13 MB / 414.6 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001238/0.1298, allocations: 31.88 kB / 414.6 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.396e-05/0.1299, allocations: 0 / 414.6 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002964/0.1302, allocations: 75.64 kB / 414.7 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.806e-05/0.1302, allocations: 19.84 kB / 414.7 MB, free: 9.395 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002464/0.1305, allocations: 35.75 kB / 414.8 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.561e-05/0.1306, allocations: 43.69 kB / 414.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.056e-05/0.1306, allocations: 0 / 414.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.354e-05/0.1307, allocations: 15.88 kB / 414.8 MB, free: 9.301 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.413e-05/0.1308, allocations: 19.92 kB / 414.8 MB, free: 9.281 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.147e-05/0.1308, allocations: 0 / 414.8 MB, free: 9.281 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003498/0.1311, allocations: 47.94 kB / 414.9 MB, free: 9.234 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.309e-05/0.1312, allocations: 7.922 kB / 414.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.327e-05/0.1312, allocations: 41.64 kB / 414.9 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001691/0.1314, allocations: 59.75 kB / 415 MB, free: 9.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1314, allocations: 0 / 415 MB, free: 9.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1314, allocations: 0 / 415 MB, free: 9.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.1314, allocations: 0 / 415 MB, free: 9.121 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.0003397/0.1318, allocations: 339.5 kB / 415.3 MB, free: 8.742 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.1318, allocations: 12.03 kB / 415.3 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.118e-05/0.1319, allocations: 4.844 kB / 415.3 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.132, allocations: 172.3 kB / 415.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.838e-06/0.132, allocations: 384 / 415.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.125e-05/0.132, allocations: 384 / 415.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001288/0.1322, allocations: 57.81 kB / 415.6 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.128e-06/0.1322, allocations: 0 / 415.6 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.1322, allocations: 3.984 kB / 415.6 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.1322, allocations: 0 / 415.6 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.77e-05/0.1323, allocations: 31.98 kB / 415.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002054/0.1325, allocations: 173.6 kB / 415.8 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.71e-05/0.1326, allocations: 58.53 kB / 415.8 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.693e-05/0.1326, allocations: 36.86 kB / 415.9 MB, free: 8.098 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.218e-05/0.1327, allocations: 7.875 kB / 415.9 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.1327, allocations: 30.56 kB / 415.9 MB, free: 8.051 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.482e-06/0.1327, allocations: 0 / 415.9 MB, free: 8.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002517/0.133, allocations: 137.8 kB / 416 MB, free: 7.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.877e-05/0.133, allocations: 51.41 kB / 416.1 MB, free: 7.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.818e-05/0.1331, allocations: 93.86 kB / 416.2 MB, free: 7.746 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.557e-05/0.1331, allocations: 25.7 kB / 416.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.356e-05/0.1331, allocations: 84.08 kB / 416.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.662e-05/0.1332, allocations: 43.36 kB / 416.3 MB, free: 7.586 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.117e-05/0.1333, allocations: 9.719 kB / 416.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002399/0.1335, allocations: 322.8 kB / 416.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.003e-05/0.1336, allocations: 24 kB / 416.7 MB, free: 7.223 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.748e-05/0.1336, allocations: 31.05 kB / 416.7 MB, free: 7.195 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001519/0.1337, allocations: 68.84 kB / 416.8 MB, free: 7.125 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.1338, allocations: 0 / 416.8 MB, free: 7.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001257/0.1339, allocations: 97.52 kB / 416.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.1339, allocations: 4 kB / 416.9 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/0.1339, allocations: 0 / 416.9 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.1339, allocations: 3.938 kB / 416.9 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.856e-06/0.134, allocations: 0 / 416.9 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.134, allocations: 7.922 kB / 416.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.155e-05/0.134, allocations: 8 kB / 416.9 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.134, allocations: 4 kB / 416.9 MB, free: 6.996 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001434/0.1342, allocations: 109.8 kB / 417 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.42e-05/0.1342, allocations: 15.83 kB / 417 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001778/0.1344, allocations: 105.6 kB / 417.1 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.1344, allocations: 8.031 kB / 417.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1344, allocations: 0 / 417.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1344, allocations: 4 kB / 417.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001345/0.1345, allocations: 169.6 kB / 417.3 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1346, allocations: 0 / 417.3 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.998e-06/0.1346, allocations: 3.938 kB / 417.3 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.1346, allocations: 3.938 kB / 417.3 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.781e-06/0.1346, allocations: 4 kB / 417.3 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.1346, allocations: 0 / 417.3 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.1346, allocations: 0 / 417.3 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000167/0.1348, allocations: 131.3 kB / 417.4 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.932e-05/0.1348, allocations: 81.05 kB / 417.5 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.949e-06/0.1348, allocations: 0 / 417.5 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.218e-05/0.1349, allocations: 4 kB / 417.5 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.538e-05/0.1349, allocations: 0 / 417.5 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.1349, allocations: 0 / 417.5 MB, free: 6.273 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.429e-05/0.1349, allocations: 75.28 kB / 417.6 MB, free: 6.199 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1349, allocations: 0 / 417.6 MB, free: 6.199 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002282/0.1352, allocations: 15.98 kB / 417.6 MB, free: 6.184 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 (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.000324/0.1355, allocations: 137 kB / 417.7 MB, free: 6.047 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001208/0.1356, allocations: 75.86 kB / 417.8 MB, free: 5.973 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1356, allocations: 0 / 417.8 MB, free: 5.973 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.679e-05/0.1357, allocations: 36 kB / 417.9 MB, free: 5.938 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003656/0.1361, allocations: 35.89 kB / 417.9 MB, free: 5.902 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003842/0.1365, allocations: 274.2 kB / 418.2 MB, free: 5.605 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002824/0.1368, allocations: 0.6887 MB / 418.9 MB, free: 4.891 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.919e-05/0.1368, allocations: 11.98 kB / 418.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.121e-05/0.1368, allocations: 7.438 kB / 418.9 MB, free: 4.871 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1368, allocations: 3.938 kB / 418.9 MB, free: 4.867 MB / 350.1 MB Notification: Performance of Templates: time 0.004271/0.1411, allocations: 1.42 MB / 420.3 MB, free: 3.477 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: