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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 81.17 kB / 19.87 MB, free: 4.617 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 173 kB / 23.28 MB, free: 1.219 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9497/0.9497, allocations: 177.2 MB / 203.7 MB, free: 5.508 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo): time 0.01013/0.01013, allocations: 1.988 MB / 262.3 MB, free: 10.9 MB / 250.7 MB " [Timeout remaining time 180] Using package ExternalMedia with version 4.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ExternalMedia.Test.TestMedium.TestState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestState") translateModel(ExternalMedia.Test.TestMedium.TestState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestState") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.502e-06/1.502e-06, allocations: 0 / 332.8 MB, free: 1.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.67e-05/2.82e-05, allocations: 6.25 kB / 332.8 MB, free: 1.742 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.00678/0.006808, allocations: 7.659 MB / 340.4 MB, free: 10.04 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 2.559e-05/0.006834, allocations: 31.88 kB / 340.5 MB, free: 10.01 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.74e-05/0.006851, allocations: 0 / 340.5 MB, free: 10.01 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000203/0.007054, allocations: 63.58 kB / 340.5 MB, free: 9.949 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 1.747e-05/0.007072, allocations: 23.78 kB / 340.5 MB, free: 9.926 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001674/0.007239, allocations: 51.62 kB / 340.6 MB, free: 9.875 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 5.39e-05/0.007293, allocations: 39.62 kB / 340.6 MB, free: 9.836 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.321e-05/0.007326, allocations: 7.984 kB / 340.6 MB, free: 9.828 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.884e-05/0.007365, allocations: 11.98 kB / 340.7 MB, free: 9.816 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.81e-05/0.007403, allocations: 11.94 kB / 340.7 MB, free: 9.805 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.069e-05/0.007414, allocations: 4 kB / 340.7 MB, free: 9.801 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001384/0.007552, allocations: 43.98 kB / 340.7 MB, free: 9.758 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.12e-05/0.007564, allocations: 3.938 kB / 340.7 MB, free: 9.754 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.777e-05/0.007581, allocations: 8 kB / 340.7 MB, free: 9.746 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001247/0.007706, allocations: 55.83 kB / 340.8 MB, free: 9.691 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.594e-06/0.007709, allocations: 3.938 kB / 340.8 MB, free: 9.688 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.007711, allocations: 4 kB / 340.8 MB, free: 9.684 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.948e-06/0.007714, allocations: 0 / 340.8 MB, free: 9.684 MB / 314.7 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.0002363/0.007951, allocations: 372.4 kB / 341.1 MB, free: 9.285 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.151e-05/0.007982, allocations: 8.031 kB / 341.2 MB, free: 9.277 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.1e-05/0.008003, allocations: 4.938 kB / 341.2 MB, free: 9.273 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.331e-05/0.008057, allocations: 108.6 kB / 341.3 MB, free: 9.141 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.147e-06/0.008066, allocations: 384 / 341.3 MB, free: 9.141 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.749e-06/0.00807, allocations: 384 / 341.3 MB, free: 9.141 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.839e-05/0.008129, allocations: 34.27 kB / 341.3 MB, free: 9.102 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.029e-06/0.008134, allocations: 4.188 kB / 341.3 MB, free: 9.098 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.792e-06/0.008141, allocations: 4.125 kB / 341.3 MB, free: 9.094 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.954e-06/0.008148, allocations: 7.984 kB / 341.3 MB, free: 9.086 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.297e-05/0.008161, allocations: 14.41 kB / 341.3 MB, free: 9.074 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.154e-05/0.008242, allocations: 105.2 kB / 341.4 MB, free: 8.945 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.376e-05/0.008276, allocations: 39.03 kB / 341.5 MB, free: 8.895 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.567e-05/0.008292, allocations: 19.72 kB / 341.5 MB, free: 8.871 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.008311, allocations: 0 / 341.5 MB, free: 8.871 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.846e-05/0.008329, allocations: 33.39 kB / 341.5 MB, free: 8.828 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 5.11e-07/0.00833, allocations: 4 kB / 341.5 MB, free: 8.824 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001126/0.008443, allocations: 89.81 kB / 341.6 MB, free: 8.73 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.51e-05/0.008468, allocations: 55.34 kB / 341.7 MB, free: 8.664 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.22e-05/0.00851, allocations: 142.2 kB / 341.8 MB, free: 8.512 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.1e-05/0.008521, allocations: 29.69 kB / 341.8 MB, free: 8.477 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.88e-05/0.00855, allocations: 126.9 kB / 342 MB, free: 8.348 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.097e-05/0.008591, allocations: 47.59 kB / 342 MB, free: 8.301 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.831e-05/0.008619, allocations: 31.34 kB / 342 MB, free: 8.262 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.008742, allocations: 496.1 kB / 342.5 MB, free: 7.766 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.613e-05/0.008758, allocations: 11.94 kB / 342.5 MB, free: 7.754 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.068e-05/0.008769, allocations: 11.92 kB / 342.5 MB, free: 7.742 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.096e-05/0.00881, allocations: 47.05 kB / 342.6 MB, free: 7.695 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.008811, allocations: 0 / 342.6 MB, free: 7.695 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 6.609e-05/0.008877, allocations: 61.7 kB / 342.7 MB, free: 7.629 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/0.008889, allocations: 7.984 kB / 342.7 MB, free: 7.621 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.008896, allocations: 4 kB / 342.7 MB, free: 7.617 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.596e-06/0.008905, allocations: 0 / 342.7 MB, free: 7.617 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.976e-06/0.008908, allocations: 0 / 342.7 MB, free: 7.617 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.397e-06/0.008911, allocations: 7.938 kB / 342.7 MB, free: 7.609 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.06e-05/0.008942, allocations: 7.891 kB / 342.7 MB, free: 7.602 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.447e-06/0.008945, allocations: 0 / 342.7 MB, free: 7.602 MB / 314.7 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 7.016e-05/0.009016, allocations: 156.6 kB / 342.8 MB, free: 7.438 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.953e-06/0.009023, allocations: 7.953 kB / 342.8 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.929e-05/0.009052, allocations: 3.969 kB / 342.8 MB, free: 7.422 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.009058, allocations: 3.984 kB / 342.8 MB, free: 7.418 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.00906, allocations: 0 / 342.8 MB, free: 7.418 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.009063, allocations: 3.938 kB / 342.9 MB, free: 7.414 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.433e-05/0.009128, allocations: 101.3 kB / 343 MB, free: 7.289 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.009129, allocations: 0 / 343 MB, free: 7.289 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.22e-07/0.00913, allocations: 0 / 343 MB, free: 7.289 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.009131, allocations: 0 / 343 MB, free: 7.289 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.805e-06/0.009134, allocations: 0 / 343 MB, free: 7.289 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.009135, allocations: 11.92 kB / 343 MB, free: 7.277 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.009137, allocations: 4 kB / 343 MB, free: 7.273 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.649e-05/0.009224, allocations: 112.2 kB / 343.1 MB, free: 7.141 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.141e-06/0.00923, allocations: 3.953 kB / 343.1 MB, free: 7.137 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.589e-06/0.009234, allocations: 0 / 343.1 MB, free: 7.137 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.249e-05/0.009247, allocations: 0 / 343.1 MB, free: 7.137 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.867e-06/0.009256, allocations: 4 kB / 343.1 MB, free: 7.133 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-06/0.009259, allocations: 4 kB / 343.1 MB, free: 7.129 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.314e-05/0.009292, allocations: 119.2 kB / 343.2 MB, free: 7.012 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.009292, allocations: 0 / 343.2 MB, free: 7.012 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001286/0.009421, allocations: 19.88 kB / 343.2 MB, free: 6.992 MB / 314.7 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.0002547/0.009675, allocations: 134.9 kB / 343.4 MB, free: 6.859 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 7.527e-05/0.009751, allocations: 43.59 kB / 343.4 MB, free: 6.812 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.009752, allocations: 0 / 343.4 MB, free: 6.812 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.456e-05/0.009767, allocations: 23.69 kB / 343.4 MB, free: 6.785 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001946/0.009962, allocations: 43.39 kB / 343.5 MB, free: 6.746 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004973/0.01046, allocations: 210.2 kB / 343.7 MB, free: 6.512 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.034e-05/0.01049, allocations: 59.22 kB / 343.7 MB, free: 6.434 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.371e-05/0.01051, allocations: 7.984 kB / 343.7 MB, free: 6.426 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.569e-05/0.01058, allocations: 86.17 kB / 343.8 MB, free: 6.34 MB / 314.7 MB Notification: Performance of SimCode: time 4.31e-07/0.01058, allocations: 0 / 343.8 MB, free: 6.34 MB / 314.7 MB Notification: Performance of Templates: time 0.003273/0.01385, allocations: 1.936 MB / 345.8 MB, free: 4.438 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.makefile [Timeout 660] (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=240 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.6789981140755117]