Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.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.001291/0.001291, allocations: 113.9 kB / 18.94 MB, free: 2.93 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.001404/0.001404, allocations: 189.9 kB / 22.22 MB, free: 5.102 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.447/1.447, allocations: 225.6 MB / 251 MB, free: 13.03 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.01623/0.01623, allocations: 2.801 MB / 309.1 MB, free: 5.824 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.TestConstants,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants") translateModel(ExternalMedia.Test.TestMedium.TestConstants,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001976/0.001976, allocations: 64.08 kB / 430.7 MB, free: 20.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0884/0.09038, allocations: 53.01 MB / 483.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.0101/0.1005, allocations: 7.378 MB / 491 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 9.848e-06/0.1005, allocations: 4 kB / 491.1 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.819e-05/0.1005, allocations: 0 / 491.1 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.621e-05/0.1005, allocations: 0 / 491.1 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003468/0.1009, allocations: 116.3 kB / 491.2 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.366e-06/0.1009, allocations: 0 / 491.2 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.779e-05/0.1009, allocations: 11.88 kB / 491.2 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.725e-05/0.101, allocations: 0 / 491.2 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02017/0.1211, allocations: 43.23 kB / 491.2 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.797e-05/0.1211, allocations: 0 / 491.2 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.566e-05/0.1212, allocations: 0 / 491.2 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.318e-06/0.1212, allocations: 0 / 491.2 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.706e-06/0.1212, allocations: 0 / 491.2 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.607e-05/0.1212, allocations: 4 kB / 491.2 MB, free: 7.629 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.722e-05/0.1212, allocations: 4 kB / 491.2 MB, free: 7.625 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1212, allocations: 0 / 491.2 MB, free: 7.625 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1213, allocations: 0 / 491.2 MB, free: 7.625 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.1213, allocations: 3.938 kB / 491.2 MB, free: 7.621 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003428/0.1216, allocations: 234.5 kB / 491.5 MB, free: 7.363 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.1216, allocations: 12.03 kB / 491.5 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.804e-05/0.1217, allocations: 0.9375 kB / 491.5 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.1218, allocations: 106.5 kB / 491.6 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.1218, allocations: 384 / 491.6 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.386e-05/0.1218, allocations: 384 / 491.6 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001136/0.1219, allocations: 37.83 kB / 491.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.1219, allocations: 0 / 491.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.122, allocations: 7.922 kB / 491.6 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.122, allocations: 0 / 491.6 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.833e-05/0.122, allocations: 3.938 kB / 491.6 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003898/0.1224, allocations: 350.5 kB / 492 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001292/0.1225, allocations: 173.1 kB / 492.1 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.132e-05/0.1225, allocations: 88.17 kB / 492.2 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.642e-05/0.1226, allocations: 75.28 kB / 492.3 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.718e-05/0.1227, allocations: 109.8 kB / 492.4 MB, free: 6.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.593e-06/0.1227, allocations: 0 / 492.4 MB, free: 6.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 9.746e-05/0.1228, allocations: 33.69 kB / 492.4 MB, free: 6.281 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.857e-05/0.1229, allocations: 130.7 kB / 492.6 MB, free: 6.141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.123, allocations: 93.86 kB / 492.7 MB, free: 6.039 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/0.123, allocations: 25.7 kB / 492.7 MB, free: 6.008 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.484e-05/0.123, allocations: 88.06 kB / 492.8 MB, free: 5.918 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.926e-06/0.123, allocations: 0 / 492.8 MB, free: 5.918 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.95e-05/0.1231, allocations: 9.719 kB / 492.8 MB, free: 5.902 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.1233, allocations: 322.8 kB / 493.1 MB, free: 5.578 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.909e-06/0.1233, allocations: 4.125 kB / 493.1 MB, free: 5.574 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.346e-06/0.1233, allocations: 3.984 kB / 493.1 MB, free: 5.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.129e-05/0.1233, allocations: 12.8 kB / 493.1 MB, free: 5.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1233, allocations: 0 / 493.1 MB, free: 5.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001238/0.1234, allocations: 29.7 kB / 493.1 MB, free: 5.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.1234, allocations: 4 kB / 493.1 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.1234, allocations: 0 / 493.1 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.1235, allocations: 0 / 493.1 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.886e-05/0.1235, allocations: 4.094 kB / 493.1 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.1235, allocations: 7.984 kB / 493.2 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.028e-05/0.1235, allocations: 3.953 kB / 493.2 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.749e-06/0.1235, allocations: 0 / 493.2 MB, free: 5.5 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 0.0001363/0.1237, allocations: 193 kB / 493.3 MB, free: 5.301 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.1238, allocations: 108.9 kB / 493.5 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.815e-05/0.1239, allocations: 104 kB / 493.6 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000112/0.124, allocations: 184.2 kB / 493.7 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001057/0.1241, allocations: 184.2 kB / 493.9 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001038/0.1242, allocations: 176.3 kB / 494.1 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003606/0.1245, allocations: 380.2 kB / 494.5 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.099e-05/0.1246, allocations: 108.9 kB / 494.6 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.178e-05/0.1247, allocations: 104.9 kB / 494.7 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001083/0.1248, allocations: 184.2 kB / 494.8 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.867e-05/0.1249, allocations: 180.3 kB / 495 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001114/0.125, allocations: 184.2 kB / 495.2 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001065/0.1251, allocations: 184.3 kB / 495.4 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000227/0.1253, allocations: 315.7 kB / 495.7 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.028e-05/0.1254, allocations: 101 kB / 495.8 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001285/0.1255, allocations: 184.2 kB / 496 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.1257, allocations: 105 kB / 496.1 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.1258, allocations: 180.2 kB / 496.3 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.023e-05/0.1259, allocations: 105 kB / 496.4 MB, free: 2.105 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.263e-05/0.1259, allocations: 79.28 kB / 496.4 MB, free: 2.027 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1259, allocations: 0 / 496.4 MB, free: 2.027 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000404/0.1263, allocations: 4 kB / 496.4 MB, free: 2.023 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001575/0.1265, allocations: 162.5 kB / 496.6 MB, free: 1.855 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.421e-05/0.1266, allocations: 11.94 kB / 496.6 MB, free: 1.844 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1266, allocations: 0 / 496.6 MB, free: 1.844 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.357e-06/0.1266, allocations: 160 / 496.6 MB, free: 1.844 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005987/0.1272, allocations: 463.6 kB / 497.1 MB, free: 1.387 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003168/0.1275, allocations: 145 kB / 497.2 MB, free: 1.219 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004114/0.1279, allocations: 0.6729 MB / 497.9 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.45e-05/0.1279, allocations: 4 kB / 497.9 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.307e-05/0.1279, allocations: 7.438 kB / 497.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1279, allocations: 4 kB / 497.9 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of Templates: time 0.003327/0.1313, allocations: 165.2 kB / 498 MB, free: 352 kB / 350.1 MB " [Timeout remaining time 660] make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.makefile [Timeout 660] (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.sim & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.322879919782281] Failed to read output from testmodel.py, exit status != 0: 0.14052398037165403 0.17208492 0.045174022 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7fc8eac957b0>