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.001023/0.001023, allocations: 77.97 kB / 20.66 MB, free: 3.844 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.001043/0.001043, allocations: 169 kB / 24.06 MB, free: 456 kB / 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 1.06/1.06, allocations: 177.1 MB / 204.5 MB, free: 5.473 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.00859/0.00859, allocations: 1.988 MB / 263 MB, free: 10.87 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.813e-06/1.813e-06, allocations: 0 / 333.5 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.478e-05/3.659e-05, allocations: 6.25 kB / 333.5 MB, free: 1.727 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.008329/0.008365, allocations: 7.657 MB / 341.2 MB, free: 10.04 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 2.795e-05/0.008393, allocations: 31.88 kB / 341.2 MB, free: 10 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.936e-05/0.008413, allocations: 0 / 341.2 MB, free: 10 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002098/0.008623, allocations: 63.58 kB / 341.3 MB, free: 9.941 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 1.85e-05/0.008641, allocations: 27.73 kB / 341.3 MB, free: 9.914 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001793/0.00882, allocations: 43.67 kB / 341.4 MB, free: 9.871 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 7.543e-05/0.008896, allocations: 47.61 kB / 341.4 MB, free: 9.824 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.805e-05/0.008944, allocations: 0 / 341.4 MB, free: 9.824 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.97e-05/0.008994, allocations: 15.98 kB / 341.4 MB, free: 9.809 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.738e-05/0.009051, allocations: 11.94 kB / 341.4 MB, free: 9.797 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.519e-05/0.009066, allocations: 0 / 341.4 MB, free: 9.797 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001707/0.009237, allocations: 47.92 kB / 341.5 MB, free: 9.75 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.557e-05/0.009253, allocations: 7.938 kB / 341.5 MB, free: 9.742 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 2.413e-05/0.009277, allocations: 12 kB / 341.5 MB, free: 9.73 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001589/0.009435, allocations: 47.83 kB / 341.6 MB, free: 9.684 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.009442, allocations: 7.938 kB / 341.6 MB, free: 9.676 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.009444, allocations: 0 / 341.6 MB, free: 9.676 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.009449, allocations: 0 / 341.6 MB, free: 9.676 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.000345/0.009794, allocations: 364.5 kB / 341.9 MB, free: 9.285 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.009836, allocations: 12.03 kB / 341.9 MB, free: 9.273 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.231e-05/0.009869, allocations: 0.9375 kB / 341.9 MB, free: 9.273 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.348e-05/0.009942, allocations: 116.5 kB / 342 MB, free: 9.133 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.007e-05/0.009952, allocations: 384 / 342 MB, free: 9.133 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.803e-06/0.009959, allocations: 8.375 kB / 342.1 MB, free: 9.125 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.035e-05/0.01003, allocations: 34.27 kB / 342.1 MB, free: 9.086 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.701e-06/0.01004, allocations: 192 / 342.1 MB, free: 9.086 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.143e-06/0.01004, allocations: 8.109 kB / 342.1 MB, free: 9.078 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.01005, allocations: 0 / 342.1 MB, free: 9.078 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.331e-05/0.01006, allocations: 11.94 kB / 342.1 MB, free: 9.066 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.919e-05/0.01014, allocations: 101.2 kB / 342.2 MB, free: 8.941 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.309e-05/0.01018, allocations: 39.03 kB / 342.2 MB, free: 8.891 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.411e-05/0.0102, allocations: 19.69 kB / 342.3 MB, free: 8.867 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.68e-05/0.01021, allocations: 4 kB / 342.3 MB, free: 8.863 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.828e-05/0.01023, allocations: 37.39 kB / 342.3 MB, free: 8.816 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 5.71e-07/0.01023, allocations: 0 / 342.3 MB, free: 8.816 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001214/0.01035, allocations: 85.86 kB / 342.4 MB, free: 8.727 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.819e-05/0.01038, allocations: 55.34 kB / 342.4 MB, free: 8.66 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.865e-05/0.01043, allocations: 146.2 kB / 342.6 MB, free: 8.504 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.01e-05/0.01044, allocations: 25.7 kB / 342.6 MB, free: 8.473 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.878e-05/0.01047, allocations: 130.8 kB / 342.7 MB, free: 8.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.699e-05/0.01052, allocations: 47.58 kB / 342.8 MB, free: 8.293 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.846e-05/0.01055, allocations: 31.36 kB / 342.8 MB, free: 8.254 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.01066, allocations: 0.4884 MB / 343.3 MB, free: 7.754 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.238e-05/0.01067, allocations: 11.94 kB / 343.3 MB, free: 7.742 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.087e-06/0.01068, allocations: 15.97 kB / 343.3 MB, free: 7.727 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.589e-05/0.01071, allocations: 30.78 kB / 343.4 MB, free: 7.695 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.01072, allocations: 0 / 343.4 MB, free: 7.695 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 6.632e-05/0.01078, allocations: 65.69 kB / 343.4 MB, free: 7.625 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.01079, allocations: 8 kB / 343.4 MB, free: 7.617 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.0108, allocations: 3.984 kB / 343.4 MB, free: 7.613 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.544e-06/0.01081, allocations: 0 / 343.4 MB, free: 7.613 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.264e-06/0.01081, allocations: 3.938 kB / 343.4 MB, free: 7.609 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.437e-06/0.01081, allocations: 3.938 kB / 343.4 MB, free: 7.605 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.297e-05/0.01084, allocations: 7.891 kB / 343.4 MB, free: 7.598 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.01084, allocations: 8.062 kB / 343.5 MB, free: 7.59 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 6.361e-05/0.01091, allocations: 156.6 kB / 343.6 MB, free: 7.426 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.815e-06/0.01091, allocations: 7.938 kB / 343.6 MB, free: 7.418 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.999e-05/0.01094, allocations: 7.969 kB / 343.6 MB, free: 7.406 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.01095, allocations: 0 / 343.6 MB, free: 7.406 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.01095, allocations: 0 / 343.6 MB, free: 7.406 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.01095, allocations: 3.938 kB / 343.6 MB, free: 7.402 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.843e-05/0.01101, allocations: 101.2 kB / 343.7 MB, free: 7.277 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.01101, allocations: 0 / 343.7 MB, free: 7.277 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.413e-06/0.01101, allocations: 4 kB / 343.7 MB, free: 7.273 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.552e-06/0.01101, allocations: 8 kB / 343.7 MB, free: 7.266 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.026e-06/0.01102, allocations: 0 / 343.7 MB, free: 7.266 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/0.01102, allocations: 0 / 343.7 MB, free: 7.266 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-07/0.01102, allocations: 0 / 343.7 MB, free: 7.266 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.2e-05/0.0111, allocations: 112.2 kB / 343.9 MB, free: 7.133 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.344e-06/0.01111, allocations: 7.953 kB / 343.9 MB, free: 7.125 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.212e-06/0.01111, allocations: 0 / 343.9 MB, free: 7.125 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.027e-05/0.01112, allocations: 0 / 343.9 MB, free: 7.125 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.207e-06/0.01113, allocations: 3.984 kB / 343.9 MB, free: 7.121 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-06/0.01113, allocations: 0 / 343.9 MB, free: 7.121 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.741e-05/0.01116, allocations: 119.2 kB / 344 MB, free: 7.004 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01116, allocations: 4.031 kB / 344 MB, free: 7 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001288/0.01129, allocations: 23.88 kB / 344 MB, free: 6.977 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.000254/0.01154, allocations: 138.4 kB / 344.1 MB, free: 6.844 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 6.918e-05/0.01161, allocations: 27.69 kB / 344.2 MB, free: 6.812 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.01162, allocations: 0 / 344.2 MB, free: 6.812 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.456e-05/0.01163, allocations: 23.67 kB / 344.2 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.0002064/0.01184, allocations: 42.92 kB / 344.2 MB, free: 6.746 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004965/0.01233, allocations: 206.1 kB / 344.4 MB, free: 6.516 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.296e-05/0.01237, allocations: 67.2 kB / 344.5 MB, free: 6.43 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.847e-05/0.01238, allocations: 3.984 kB / 344.5 MB, free: 6.426 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.562e-05/0.01245, allocations: 86.19 kB / 344.6 MB, free: 6.34 MB / 314.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01245, allocations: 0 / 344.6 MB, free: 6.34 MB / 314.7 MB Notification: Performance of Templates: time 0.003214/0.01566, allocations: 1.98 MB / 346.6 MB, free: 4.406 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.869780727662146]