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.001829/0.001829, allocations: 79.03 kB / 19.76 MB, free: 2.031 MB / 14.72 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.002137/0.002137, allocations: 157.2 kB / 23.01 MB, free: 4.945 MB / 14.72 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.444/1.444, allocations: 177.2 MB / 203.4 MB, free: 8.957 MB / 190.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.01208/0.01208, allocations: 2.005 MB / 261.8 MB, free: 14.65 MB / 254.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.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: ExternalMedia requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002115/0.002115, allocations: 59.91 kB / 385.6 MB, free: 2.426 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1022, allocations: 54.15 MB / 439.8 MB, free: 12.18 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.009033/0.1112, allocations: 7.009 MB / 446.8 MB, free: 5.133 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 4.797e-05/0.1113, allocations: 31.88 kB / 446.8 MB, free: 5.102 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.686e-05/0.1113, allocations: 0 / 446.8 MB, free: 5.102 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002171/0.1115, allocations: 63.64 kB / 446.9 MB, free: 5.039 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 3.35e-05/0.1116, allocations: 27.77 kB / 446.9 MB, free: 5.012 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001492/0.1117, allocations: 39.64 kB / 446.9 MB, free: 4.973 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 7.812e-05/0.1118, allocations: 43.67 kB / 447 MB, free: 4.93 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.435e-05/0.1118, allocations: 4 kB / 447 MB, free: 4.926 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.342e-05/0.1119, allocations: 11.94 kB / 447 MB, free: 4.914 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.011e-05/0.1119, allocations: 15.92 kB / 447 MB, free: 4.898 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.034e-05/0.1119, allocations: 7.938 kB / 447 MB, free: 4.891 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001652/0.1121, allocations: 36 kB / 447.1 MB, free: 4.855 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.134e-05/0.1121, allocations: 0 / 447.1 MB, free: 4.855 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.108e-05/0.1121, allocations: 11.94 kB / 447.1 MB, free: 4.844 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001707/0.1123, allocations: 67.73 kB / 447.1 MB, free: 4.777 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1123, allocations: 4 kB / 447.1 MB, free: 4.773 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1123, allocations: 0 / 447.1 MB, free: 4.773 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.947e-06/0.1123, allocations: 0 / 447.1 MB, free: 4.773 MB / 414.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.0003274/0.1126, allocations: 274.2 kB / 447.4 MB, free: 4.477 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.1127, allocations: 8.031 kB / 447.4 MB, free: 4.469 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.353e-05/0.1127, allocations: 0.9375 kB / 447.4 MB, free: 4.469 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.901e-05/0.1128, allocations: 118.4 kB / 447.5 MB, free: 4.328 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.404e-06/0.1128, allocations: 384 / 447.5 MB, free: 4.328 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.478e-06/0.1128, allocations: 384 / 447.5 MB, free: 4.328 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001148/0.1129, allocations: 57.83 kB / 447.6 MB, free: 4.266 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-06/0.1129, allocations: 4 kB / 447.6 MB, free: 4.262 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-06/0.1129, allocations: 0 / 447.6 MB, free: 4.262 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.1129, allocations: 3.984 kB / 447.6 MB, free: 4.258 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.201e-05/0.113, allocations: 31.92 kB / 447.6 MB, free: 4.227 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000142/0.1131, allocations: 117.3 kB / 447.7 MB, free: 4.082 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.514e-05/0.1132, allocations: 42.56 kB / 447.8 MB, free: 4.031 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.109e-05/0.1132, allocations: 36.88 kB / 447.8 MB, free: 3.992 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.643e-05/0.1132, allocations: 0 / 447.8 MB, free: 3.992 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.1133, allocations: 34.5 kB / 447.9 MB, free: 3.949 MB / 414.1 MB Notification: Performance of pre-optimization done (n=15): time 1.202e-06/0.1133, allocations: 0 / 447.9 MB, free: 3.949 MB / 414.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002349/0.1135, allocations: 144.9 kB / 448 MB, free: 3.805 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.621e-05/0.1135, allocations: 55.44 kB / 448.1 MB, free: 3.738 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.721e-05/0.1136, allocations: 89.86 kB / 448.1 MB, free: 3.641 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.1136, allocations: 25.7 kB / 448.2 MB, free: 3.609 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.548e-05/0.1137, allocations: 80.14 kB / 448.2 MB, free: 3.527 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.772e-05/0.1137, allocations: 55.47 kB / 448.3 MB, free: 3.473 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.252e-05/0.1138, allocations: 21.7 kB / 448.3 MB, free: 3.445 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1139, allocations: 310.8 kB / 448.6 MB, free: 3.133 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.669e-05/0.1139, allocations: 31.98 kB / 448.7 MB, free: 3.102 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.886e-05/0.114, allocations: 24 kB / 448.7 MB, free: 3.078 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.85e-05/0.114, allocations: 68.83 kB / 448.7 MB, free: 3.008 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.1141, allocations: 4.031 kB / 448.7 MB, free: 3.004 MB / 414.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001246/0.1142, allocations: 97.62 kB / 448.8 MB, free: 2.902 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.1142, allocations: 7.938 kB / 448.9 MB, free: 2.895 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.1142, allocations: 3.984 kB / 448.9 MB, free: 2.891 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.1142, allocations: 0 / 448.9 MB, free: 2.891 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.31e-07/0.1142, allocations: 0 / 448.9 MB, free: 2.891 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.657e-06/0.1142, allocations: 0 / 448.9 MB, free: 2.891 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.859e-05/0.1142, allocations: 11.89 kB / 448.9 MB, free: 2.879 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.909e-06/0.1142, allocations: 0 / 448.9 MB, free: 2.879 MB / 414.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 7.774e-05/0.1143, allocations: 105.8 kB / 449 MB, free: 2.766 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.13e-05/0.1143, allocations: 15.92 kB / 449 MB, free: 2.75 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.78e-05/0.1144, allocations: 7.969 kB / 449 MB, free: 2.746 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.1144, allocations: 3.984 kB / 449 MB, free: 2.742 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.1144, allocations: 0 / 449 MB, free: 2.742 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-06/0.1144, allocations: 3.938 kB / 449 MB, free: 2.738 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.443e-05/0.1145, allocations: 117.2 kB / 449.1 MB, free: 2.594 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1145, allocations: 0 / 449.1 MB, free: 2.594 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.1145, allocations: 0 / 449.1 MB, free: 2.594 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.1145, allocations: 0 / 449.1 MB, free: 2.594 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.1145, allocations: 3.938 kB / 449.1 MB, free: 2.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.72e-06/0.1145, allocations: 4 kB / 449.1 MB, free: 2.586 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1145, allocations: 8 kB / 449.1 MB, free: 2.578 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001559/0.1146, allocations: 132 kB / 449.3 MB, free: 2.434 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.736e-06/0.1147, allocations: 3.953 kB / 449.3 MB, free: 2.43 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.888e-06/0.1147, allocations: 3.938 kB / 449.3 MB, free: 2.426 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.884e-05/0.1147, allocations: 3.938 kB / 449.3 MB, free: 2.422 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.37e-05/0.1147, allocations: 4 kB / 449.3 MB, free: 2.418 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.1147, allocations: 3.984 kB / 449.3 MB, free: 2.414 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.348e-05/0.1147, allocations: 75.28 kB / 449.4 MB, free: 2.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1147, allocations: 0 / 449.4 MB, free: 2.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002027/0.1149, allocations: 15.94 kB / 449.4 MB, free: 2.324 MB / 414.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.0003469/0.1153, allocations: 142.8 kB / 449.5 MB, free: 2.188 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000129/0.1154, allocations: 63.92 kB / 449.6 MB, free: 2.125 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1154, allocations: 4.062 kB / 449.6 MB, free: 2.121 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.716e-05/0.1155, allocations: 31.94 kB / 449.6 MB, free: 2.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003864/0.1158, allocations: 31.89 kB / 449.6 MB, free: 2.059 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000433/0.1163, allocations: 224.6 kB / 449.9 MB, free: 1.812 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.446e-05/0.1163, allocations: 67.34 kB / 449.9 MB, free: 1.727 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.331e-05/0.1164, allocations: 7.984 kB / 449.9 MB, free: 1.719 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.282e-05/0.1164, allocations: 8.5 kB / 449.9 MB, free: 1.711 MB / 414.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1164, allocations: 0 / 449.9 MB, free: 1.711 MB / 414.1 MB Notification: Performance of Templates: time 0.004783/0.1212, allocations: 1.662 MB / 451.6 MB, free: 104 kB / 414.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 ida -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.411930174916051] Failed to read output from testmodel.py, exit status != 0: 0.12926446192432195 0.14383755 0.028542554 Calling exit ...