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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00171/0.00171, allocations: 114.5 kB / 18.88 MB, free: 3.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001534/0.001534, allocations: 191.6 kB / 22.17 MB, free: 5.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "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: 225.6 MB / 250.9 MB, free: 13.28 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01352/0.01352, allocations: 2.795 MB / 308.9 MB, free: 5.949 MB / 238.1 MB " [Timeout remaining time 180] 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=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 0.00194/0.00194, allocations: 79.86 kB / 430.4 MB, free: 20.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1052, allocations: 52.95 MB / 483.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.009979/0.1152, allocations: 7.604 MB / 491 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 4.287e-05/0.1153, allocations: 27.83 kB / 491 MB, free: 7.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.339e-05/0.1153, allocations: 0 / 491 MB, free: 7.891 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003282/0.1156, allocations: 83.58 kB / 491.1 MB, free: 7.809 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.78e-05/0.1156, allocations: 27.78 kB / 491.1 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000201/0.1159, allocations: 43.67 kB / 491.2 MB, free: 7.738 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.577e-05/0.1159, allocations: 35.69 kB / 491.2 MB, free: 7.703 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.55e-05/0.116, allocations: 4 kB / 491.2 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.154e-05/0.116, allocations: 15.94 kB / 491.2 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.604e-05/0.1161, allocations: 11.94 kB / 491.2 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.372e-05/0.1161, allocations: 0 / 491.2 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002333/0.1163, allocations: 43.92 kB / 491.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.505e-05/0.1164, allocations: 7.938 kB / 491.3 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.306e-05/0.1164, allocations: 15.94 kB / 491.3 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002105/0.1166, allocations: 63.69 kB / 491.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.1166, allocations: 4 kB / 491.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1166, allocations: 0 / 491.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.1166, allocations: 0 / 491.4 MB, free: 7.539 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.0004653/0.1171, allocations: 339.4 kB / 491.7 MB, free: 7.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.1171, allocations: 8.031 kB / 491.7 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.59e-05/0.1172, allocations: 4.891 kB / 491.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001642/0.1173, allocations: 172.4 kB / 491.9 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.1173, allocations: 4.375 kB / 491.9 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.285e-05/0.1174, allocations: 384 / 491.9 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001608/0.1175, allocations: 57.77 kB / 491.9 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.1175, allocations: 0 / 491.9 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.846e-06/0.1175, allocations: 0 / 491.9 MB, free: 6.875 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/0.1175, allocations: 3.984 kB / 491.9 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.25e-05/0.1176, allocations: 24 kB / 492 MB, free: 6.848 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002098/0.1178, allocations: 177.5 kB / 492.1 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.666e-05/0.1179, allocations: 42.58 kB / 492.2 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.52e-05/0.1179, allocations: 36.88 kB / 492.2 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.118, allocations: 7.875 kB / 492.2 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.2e-05/0.118, allocations: 34.5 kB / 492.2 MB, free: 6.484 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.082e-06/0.118, allocations: 0 / 492.2 MB, free: 6.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002756/0.1183, allocations: 129.5 kB / 492.4 MB, free: 6.355 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.1183, allocations: 51.41 kB / 492.4 MB, free: 6.293 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.227e-05/0.1184, allocations: 105.8 kB / 492.5 MB, free: 6.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.956e-05/0.1184, allocations: 25.7 kB / 492.6 MB, free: 6.148 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.668e-05/0.1185, allocations: 80.14 kB / 492.6 MB, free: 6.066 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.174e-05/0.1185, allocations: 47.59 kB / 492.7 MB, free: 6.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.83e-05/0.1186, allocations: 17.72 kB / 492.7 MB, free: 5.996 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002013/0.1188, allocations: 314.8 kB / 493 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.777e-05/0.1188, allocations: 24 kB / 493 MB, free: 5.656 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.212e-05/0.1188, allocations: 27.98 kB / 493.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001004/0.1189, allocations: 72.75 kB / 493.1 MB, free: 5.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.1189, allocations: 0 / 493.1 MB, free: 5.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001441/0.1191, allocations: 101.6 kB / 493.2 MB, free: 5.449 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.1191, allocations: 4 kB / 493.2 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.1191, allocations: 0 / 493.2 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.1191, allocations: 0 / 493.2 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.889e-06/0.1191, allocations: 4 kB / 493.2 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.1191, allocations: 0 / 493.2 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.131e-05/0.1192, allocations: 3.938 kB / 493.2 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.1192, allocations: 0 / 493.2 MB, free: 5.438 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 9.698e-05/0.1193, allocations: 114.8 kB / 493.3 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.616e-05/0.1193, allocations: 11.88 kB / 493.4 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.842e-05/0.1193, allocations: 4.094 kB / 493.4 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/0.1193, allocations: 4 kB / 493.4 MB, free: 5.301 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1193, allocations: 4 kB / 493.4 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.1193, allocations: 0 / 493.4 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001662/0.1195, allocations: 165.6 kB / 493.5 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1195, allocations: 3.938 kB / 493.5 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.375e-06/0.1195, allocations: 3.938 kB / 493.5 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.1195, allocations: 8 kB / 493.5 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.1195, allocations: 4 kB / 493.5 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.1195, allocations: 0 / 493.5 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1195, allocations: 0 / 493.5 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001627/0.1197, allocations: 120.4 kB / 493.7 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.928e-05/0.1197, allocations: 88.94 kB / 493.8 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.78e-05/0.1198, allocations: 11.98 kB / 493.8 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.94e-05/0.1198, allocations: 0 / 493.8 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.95e-05/0.1198, allocations: 4.031 kB / 493.8 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.419e-06/0.1198, allocations: 3.984 kB / 493.8 MB, free: 4.809 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.545e-05/0.1199, allocations: 79.22 kB / 493.9 MB, free: 4.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1199, allocations: 0 / 493.9 MB, free: 4.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002115/0.1201, allocations: 15.94 kB / 493.9 MB, free: 4.715 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.0004296/0.1205, allocations: 135.4 kB / 494 MB, free: 4.582 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001571/0.1207, allocations: 55.92 kB / 494.1 MB, free: 4.527 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1207, allocations: 0 / 494.1 MB, free: 4.527 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.681e-05/0.1207, allocations: 28 kB / 494.1 MB, free: 4.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004185/0.1211, allocations: 43.03 kB / 494.1 MB, free: 4.461 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004566/0.1216, allocations: 223.4 kB / 494.3 MB, free: 4.215 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003917/0.122, allocations: 0.6885 MB / 495 MB, free: 3.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.41e-05/0.122, allocations: 3.984 kB / 495 MB, free: 3.496 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.231e-05/0.122, allocations: 7.438 kB / 495 MB, free: 3.488 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.122, allocations: 0 / 495 MB, free: 3.488 MB / 350.1 MB Notification: Performance of Templates: time 0.004852/0.1269, allocations: 1.6 MB / 496.6 MB, free: 1.914 MB / 350.1 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=480 -s cvode -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.653943669050932] Failed to read output from testmodel.py, exit status != 0: 0.13432633969932795 0.15091246700000002 0.030838664000000002 Calling exit ...