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.001126/0.001126, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001129/0.001129, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.321/1.321, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01225/0.01225, allocations: 2.778 MB / 293.8 MB, free: 12.08 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 59.91 kB / 355.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1918/0.1932, allocations: 50.24 MB / 405.3 MB, free: 32.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.006601/0.1998, allocations: 7.511 MB / 412.8 MB, free: 25.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 3.322e-05/0.1999, allocations: 39.8 kB / 412.8 MB, free: 25.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.95e-05/0.1999, allocations: 0 / 412.8 MB, free: 25.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000245/0.2002, allocations: 79.52 kB / 412.9 MB, free: 25.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 2.105e-05/0.2003, allocations: 23.84 kB / 413 MB, free: 25.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001688/0.2004, allocations: 35.69 kB / 413 MB, free: 25.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.546e-05/0.2005, allocations: 51.62 kB / 413 MB, free: 25.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.073e-05/0.2006, allocations: 4 kB / 413 MB, free: 25.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.354e-05/0.2006, allocations: 11.94 kB / 413.1 MB, free: 25.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.975e-05/0.2007, allocations: 15.92 kB / 413.1 MB, free: 25.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.463e-05/0.2007, allocations: 4 kB / 413.1 MB, free: 25.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001944/0.2009, allocations: 39.94 kB / 413.1 MB, free: 25.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.333e-05/0.2009, allocations: 11.92 kB / 413.1 MB, free: 25.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.323e-05/0.2009, allocations: 11.94 kB / 413.1 MB, free: 25.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001601/0.2011, allocations: 55.81 kB / 413.2 MB, free: 25.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.2011, allocations: 0 / 413.2 MB, free: 25.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2011, allocations: 0 / 413.2 MB, free: 25.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.2011, allocations: 7.938 kB / 413.2 MB, free: 25.06 MB / 302.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.000258/0.2014, allocations: 335.4 kB / 413.5 MB, free: 24.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.997e-05/0.2014, allocations: 12.03 kB / 413.5 MB, free: 24.67 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.828e-05/0.2015, allocations: 8.844 kB / 413.5 MB, free: 24.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.614e-05/0.2015, allocations: 172.3 kB / 413.7 MB, free: 24.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.2016, allocations: 384 / 413.7 MB, free: 24.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.546e-06/0.2016, allocations: 384 / 413.7 MB, free: 24.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001115/0.2017, allocations: 63.44 kB / 413.8 MB, free: 24.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.2017, allocations: 4 kB / 413.8 MB, free: 24.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.966e-06/0.2017, allocations: 0 / 413.8 MB, free: 24.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.2017, allocations: 4 kB / 413.8 MB, free: 24.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.996e-05/0.2018, allocations: 23.98 kB / 413.8 MB, free: 24.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001056/0.2019, allocations: 173.6 kB / 414 MB, free: 24.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.252e-05/0.2019, allocations: 50.56 kB / 414 MB, free: 24.08 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.96e-05/0.202, allocations: 40.89 kB / 414.1 MB, free: 24.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.421e-05/0.202, allocations: 3.938 kB / 414.1 MB, free: 24.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.576e-05/0.202, allocations: 38.5 kB / 414.1 MB, free: 23.99 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.042e-06/0.202, allocations: 0 / 414.1 MB, free: 23.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0001707/0.2022, allocations: 129.6 kB / 414.2 MB, free: 23.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.429e-05/0.2022, allocations: 55.44 kB / 414.3 MB, free: 23.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.766e-05/0.2023, allocations: 89.86 kB / 414.4 MB, free: 23.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.71e-06/0.2023, allocations: 25.7 kB / 414.4 MB, free: 23.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.546e-06/0.2023, allocations: 80.14 kB / 414.5 MB, free: 23.58 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.604e-05/0.2023, allocations: 55.5 kB / 414.5 MB, free: 23.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.575e-05/0.2024, allocations: 17.72 kB / 414.5 MB, free: 23.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.152e-05/0.2024, allocations: 322.8 kB / 414.9 MB, free: 23.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.194e-05/0.2025, allocations: 20 kB / 414.9 MB, free: 23.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.973e-05/0.2025, allocations: 36.62 kB / 414.9 MB, free: 23.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.367e-05/0.2025, allocations: 68.78 kB / 415 MB, free: 23.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.2025, allocations: 0 / 415 MB, free: 23.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 8.178e-05/0.2026, allocations: 101.5 kB / 415.1 MB, free: 22.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.04e-05/0.2026, allocations: 4 kB / 415.1 MB, free: 22.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.2027, allocations: 0 / 415.1 MB, free: 22.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.2027, allocations: 0 / 415.1 MB, free: 22.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.61e-07/0.2027, allocations: 0 / 415.1 MB, free: 22.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.2027, allocations: 7.984 kB / 415.1 MB, free: 22.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.386e-05/0.2027, allocations: 0 / 415.1 MB, free: 22.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.618e-06/0.2027, allocations: 4.062 kB / 415.1 MB, free: 22.93 MB / 302.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 4.619e-05/0.2028, allocations: 117.8 kB / 415.2 MB, free: 22.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.757e-06/0.2028, allocations: 7.844 kB / 415.2 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.612e-05/0.2028, allocations: 4.094 kB / 415.2 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.2028, allocations: 0 / 415.2 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2028, allocations: 11.88 kB / 415.2 MB, free: 22.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.2028, allocations: 0 / 415.2 MB, free: 22.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.989e-05/0.2029, allocations: 173.5 kB / 415.4 MB, free: 22.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.2029, allocations: 0 / 415.4 MB, free: 22.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.12e-07/0.2029, allocations: 7.938 kB / 415.4 MB, free: 22.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.2029, allocations: 4 kB / 415.4 MB, free: 22.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.468e-06/0.2029, allocations: 0 / 415.4 MB, free: 22.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.2029, allocations: 0 / 415.4 MB, free: 22.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2029, allocations: 0 / 415.4 MB, free: 22.55 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.447e-05/0.203, allocations: 117.1 kB / 415.5 MB, free: 22.42 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.937e-05/0.2031, allocations: 88.89 kB / 415.6 MB, free: 22.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.466e-05/0.2031, allocations: 4 kB / 415.6 MB, free: 22.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.046e-05/0.2031, allocations: 15.95 kB / 415.6 MB, free: 22.3 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.241e-05/0.2031, allocations: 0 / 415.6 MB, free: 22.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-06/0.2031, allocations: 0 / 415.6 MB, free: 22.3 MB / 302.1 MB Notification: Performance of sorting global known variables: time 1.271e-05/0.2031, allocations: 79.31 kB / 415.7 MB, free: 22.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2032, allocations: 0 / 415.7 MB, free: 22.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002035/0.2034, allocations: 16 kB / 415.7 MB, free: 22.2 MB / 302.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.0002592/0.2036, allocations: 133.7 kB / 415.9 MB, free: 22.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.866e-05/0.2037, allocations: 67.98 kB / 415.9 MB, free: 22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2037, allocations: 0 / 415.9 MB, free: 22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.506e-05/0.2038, allocations: 39.98 kB / 416 MB, free: 21.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003761/0.2042, allocations: 32.03 kB / 416 MB, free: 21.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002981/0.2045, allocations: 257 kB / 416.3 MB, free: 21.65 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.616e-05/0.2046, allocations: 0.6807 MB / 416.9 MB, free: 20.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.504e-06/0.2046, allocations: 11.44 kB / 416.9 MB, free: 20.93 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.2046, allocations: 0 / 416.9 MB, free: 20.93 MB / 302.1 MB Notification: Performance of Templates: time 0.001755/0.2063, allocations: 0.8187 MB / 417.8 MB, free: 20.11 MB / 302.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.makefile (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)