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.0009394/0.0009394, allocations: 93.06 kB / 19.65 MB, free: 276 kB / 13.93 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.0009746/0.0009746, allocations: 165 kB / 23.02 MB, free: 1.547 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 1.019/1.019, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.01964/0.01964, allocations: 1.996 MB / 261.9 MB, free: 11.05 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.333e-06/1.333e-06, allocations: 0 / 332.3 MB, free: 16.98 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.635e-05/1.768e-05, allocations: 6.312 kB / 332.3 MB, free: 16.97 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.005102/0.005119, allocations: 7.743 MB / 340.1 MB, free: 9.188 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 2.147e-05/0.005141, allocations: 35.88 kB / 340.1 MB, free: 9.152 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.559e-05/0.005156, allocations: 0 / 340.1 MB, free: 9.152 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001873/0.005344, allocations: 63.58 kB / 340.1 MB, free: 9.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 1.533e-05/0.005359, allocations: 23.78 kB / 340.2 MB, free: 9.066 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001365/0.005495, allocations: 39.69 kB / 340.2 MB, free: 9.027 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 5.992e-05/0.005555, allocations: 51.56 kB / 340.3 MB, free: 8.977 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.5e-05/0.0056, allocations: 3.984 kB / 340.3 MB, free: 8.973 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.831e-05/0.005649, allocations: 15.98 kB / 340.3 MB, free: 8.957 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.111e-05/0.00571, allocations: 11.94 kB / 340.3 MB, free: 8.945 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.724e-05/0.005727, allocations: 0 / 340.3 MB, free: 8.945 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001779/0.005905, allocations: 40 kB / 340.3 MB, free: 8.906 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.576e-05/0.005921, allocations: 0 / 340.3 MB, free: 8.906 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.997e-05/0.005951, allocations: 15.94 kB / 340.3 MB, free: 8.891 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001319/0.006082, allocations: 55.81 kB / 340.4 MB, free: 8.836 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.006085, allocations: 0 / 340.4 MB, free: 8.836 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.72e-07/0.006085, allocations: 4 kB / 340.4 MB, free: 8.832 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.006089, allocations: 0 / 340.4 MB, free: 8.832 MB / 266.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.0002328/0.006322, allocations: 364.6 kB / 340.8 MB, free: 8.441 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.006357, allocations: 12.03 kB / 340.8 MB, free: 8.43 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.171e-05/0.006389, allocations: 8.828 kB / 340.8 MB, free: 8.422 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.113e-05/0.00643, allocations: 112.6 kB / 340.9 MB, free: 8.285 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.006445, allocations: 384 / 340.9 MB, free: 8.285 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.169e-05/0.006457, allocations: 384 / 340.9 MB, free: 8.285 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001051/0.006562, allocations: 36.66 kB / 340.9 MB, free: 8.246 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.196e-05/0.006574, allocations: 192 / 340.9 MB, free: 8.246 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.006585, allocations: 4.125 kB / 340.9 MB, free: 8.242 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.006595, allocations: 15.98 kB / 340.9 MB, free: 8.227 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.521e-05/0.00661, allocations: 15.88 kB / 341 MB, free: 8.211 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.411e-05/0.006694, allocations: 120.6 kB / 341.1 MB, free: 8.059 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.375e-05/0.006728, allocations: 31.06 kB / 341.1 MB, free: 8.016 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.694e-05/0.006745, allocations: 27.7 kB / 341.1 MB, free: 7.984 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.006767, allocations: 0 / 341.1 MB, free: 7.984 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.435e-05/0.006781, allocations: 33.39 kB / 341.2 MB, free: 7.941 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 6.61e-07/0.006782, allocations: 0 / 341.2 MB, free: 7.941 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001341/0.006916, allocations: 93.8 kB / 341.3 MB, free: 7.844 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.971e-05/0.006936, allocations: 51.41 kB / 341.3 MB, free: 7.781 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.969e-05/0.006955, allocations: 150.3 kB / 341.5 MB, free: 7.621 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.63e-06/0.006961, allocations: 25.7 kB / 341.5 MB, free: 7.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.129e-05/0.006972, allocations: 130.9 kB / 341.6 MB, free: 7.457 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.717e-05/0.007009, allocations: 43.61 kB / 341.7 MB, free: 7.414 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.359e-05/0.007033, allocations: 31.36 kB / 341.7 MB, free: 7.375 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.039e-05/0.007073, allocations: 0.4884 MB / 342.2 MB, free: 6.875 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.591e-05/0.007089, allocations: 8 kB / 342.2 MB, free: 6.867 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.064e-05/0.0071, allocations: 11.94 kB / 342.2 MB, free: 6.855 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.688e-05/0.007147, allocations: 43.05 kB / 342.2 MB, free: 6.812 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.007149, allocations: 4 kB / 342.2 MB, free: 6.809 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 5.953e-05/0.007208, allocations: 69.59 kB / 342.3 MB, free: 6.734 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.007221, allocations: 12.05 kB / 342.3 MB, free: 6.723 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.007226, allocations: 0 / 342.3 MB, free: 6.723 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.007241, allocations: 0 / 342.3 MB, free: 6.723 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.288e-06/0.007245, allocations: 3.938 kB / 342.3 MB, free: 6.719 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.00725, allocations: 7.938 kB / 342.3 MB, free: 6.711 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.456e-05/0.007274, allocations: 7.891 kB / 342.3 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.05e-06/0.00728, allocations: 0 / 342.3 MB, free: 6.703 MB / 266.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 4.461e-05/0.007324, allocations: 156.6 kB / 342.5 MB, free: 6.539 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.818e-06/0.007328, allocations: 0 / 342.5 MB, free: 6.539 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.087e-05/0.007369, allocations: 3.969 kB / 342.5 MB, free: 6.539 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.007374, allocations: 15.97 kB / 342.5 MB, free: 6.523 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.007378, allocations: 3.938 kB / 342.5 MB, free: 6.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.00738, allocations: 4 kB / 342.5 MB, free: 6.516 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.21e-05/0.007422, allocations: 112.6 kB / 342.6 MB, free: 6.371 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.007424, allocations: 0 / 342.6 MB, free: 6.371 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.007424, allocations: 4 kB / 342.6 MB, free: 6.367 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.52e-07/0.007425, allocations: 0 / 342.6 MB, free: 6.367 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.831e-06/0.007431, allocations: 3.984 kB / 342.6 MB, free: 6.363 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.007432, allocations: 4 kB / 342.6 MB, free: 6.359 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.007433, allocations: 0 / 342.6 MB, free: 6.359 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.143e-05/0.007504, allocations: 124.2 kB / 342.8 MB, free: 6.215 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.34e-06/0.007509, allocations: 0 / 342.8 MB, free: 6.215 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.975e-06/0.007517, allocations: 4 kB / 342.8 MB, free: 6.211 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.21e-05/0.007529, allocations: 4 kB / 342.8 MB, free: 6.207 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.389e-05/0.007543, allocations: 3.938 kB / 342.8 MB, free: 6.203 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-06/0.007545, allocations: 0 / 342.8 MB, free: 6.203 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.347e-05/0.007559, allocations: 119.2 kB / 342.9 MB, free: 6.086 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007559, allocations: 0 / 342.9 MB, free: 6.086 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001281/0.007687, allocations: 15.94 kB / 342.9 MB, free: 6.07 MB / 266.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.0002847/0.007972, allocations: 132.7 kB / 343 MB, free: 5.941 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.936e-05/0.008061, allocations: 47.61 kB / 343.1 MB, free: 5.891 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.008063, allocations: 0 / 343.1 MB, free: 5.891 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.233e-05/0.008075, allocations: 23.69 kB / 343.1 MB, free: 5.863 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002136/0.008289, allocations: 43.58 kB / 343.1 MB, free: 5.824 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005985/0.008887, allocations: 213.8 kB / 343.4 MB, free: 5.586 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.373e-05/0.008911, allocations: 55.36 kB / 343.4 MB, free: 5.512 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.71e-05/0.008928, allocations: 7.938 kB / 343.4 MB, free: 5.504 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.061e-05/0.008938, allocations: 12.5 kB / 343.4 MB, free: 5.492 MB / 266.7 MB Notification: Performance of SimCode: time 9.12e-07/0.008939, allocations: 0 / 343.4 MB, free: 5.492 MB / 266.7 MB Notification: Performance of Templates: time 0.003156/0.0121, allocations: 1.669 MB / 345.1 MB, free: 3.879 MB / 266.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.964086602907628]