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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) 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=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestState") translateModel(ExternalMedia.Test.TestMedium.TestState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 106.3 kB / 16.41 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 185.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01324/0.01324, allocations: 2.783 MB / 294 MB, free: 11.97 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 63.89 kB / 406.6 MB, free: 29.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09989/0.1011, allocations: 50.24 MB / 456.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.008473/0.1097, allocations: 7.526 MB / 464.3 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 3.722e-05/0.1098, allocations: 27.89 kB / 464.3 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.991e-05/0.1098, allocations: 0 / 464.3 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002531/0.1101, allocations: 75.58 kB / 464.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 2.64e-05/0.1101, allocations: 31.77 kB / 464.4 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001894/0.1103, allocations: 39.69 kB / 464.5 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.263e-05/0.1104, allocations: 39.69 kB / 464.5 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.629e-05/0.1105, allocations: 4 kB / 464.5 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.622e-05/0.1105, allocations: 15.88 kB / 464.5 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.302e-05/0.1106, allocations: 15.92 kB / 464.6 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.088e-05/0.1106, allocations: 3.938 kB / 464.6 MB, free: 3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001794/0.1108, allocations: 48 kB / 464.6 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.098e-05/0.1108, allocations: 0 / 464.6 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.249e-05/0.1108, allocations: 15.88 kB / 464.6 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001559/0.111, allocations: 59.8 kB / 464.7 MB, free: 2.879 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.111, allocations: 0 / 464.7 MB, free: 2.879 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.111, allocations: 3.938 kB / 464.7 MB, free: 2.875 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.111, allocations: 0 / 464.7 MB, free: 2.875 MB / 334.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.0003455/0.1114, allocations: 343.4 kB / 465 MB, free: 2.492 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.1114, allocations: 12.03 kB / 465 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.864e-05/0.1115, allocations: 8.938 kB / 465 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.784e-05/0.1116, allocations: 168.3 kB / 465.2 MB, free: 2.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.1116, allocations: 4.375 kB / 465.2 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.618e-06/0.1116, allocations: 384 / 465.2 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001255/0.1117, allocations: 65.73 kB / 465.3 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.1117, allocations: 0 / 465.3 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.354e-06/0.1117, allocations: 0 / 465.3 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.1118, allocations: 0 / 465.3 MB, free: 2.195 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.85e-05/0.1118, allocations: 27.98 kB / 465.3 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001578/0.112, allocations: 177.5 kB / 465.5 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.558e-05/0.112, allocations: 50.56 kB / 465.5 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.783e-05/0.1121, allocations: 44.41 kB / 465.6 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.1121, allocations: 3.938 kB / 465.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.1122, allocations: 30.56 kB / 465.6 MB, free: 1.801 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 9.61e-07/0.1122, allocations: 0 / 465.6 MB, free: 1.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0001995/0.1124, allocations: 137.7 kB / 465.7 MB, free: 1.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.741e-05/0.1124, allocations: 55.44 kB / 465.8 MB, free: 1.594 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.633e-05/0.1125, allocations: 89.86 kB / 465.9 MB, free: 1.496 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.091e-05/0.1125, allocations: 25.7 kB / 465.9 MB, free: 1.465 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.606e-05/0.1125, allocations: 84.14 kB / 466 MB, free: 1.379 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.03e-05/0.1126, allocations: 43.3 kB / 466 MB, free: 1.336 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.808e-05/0.1126, allocations: 17.72 kB / 466 MB, free: 1.312 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.1127, allocations: 318.8 kB / 466.4 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.045e-05/0.1128, allocations: 24 kB / 466.4 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.475e-05/0.1128, allocations: 27.92 kB / 466.4 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.651e-05/0.1129, allocations: 68.88 kB / 466.5 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.1129, allocations: 0 / 466.5 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001048/0.113, allocations: 105.1 kB / 466.6 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.113, allocations: 6.344 kB / 466.6 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.113, allocations: 0 / 466.6 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.113, allocations: 0 / 466.6 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.1131, allocations: 0 / 466.6 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.1131, allocations: 7.938 kB / 466.6 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.809e-05/0.1131, allocations: 7.938 kB / 466.6 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.1131, allocations: 3.984 kB / 466.6 MB, free: 0.7422 MB / 334.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 8.636e-05/0.1132, allocations: 117.9 kB / 466.7 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.055e-05/0.1132, allocations: 7.844 kB / 466.7 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.783e-05/0.1133, allocations: 4.094 kB / 466.7 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.1133, allocations: 0 / 466.7 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.1133, allocations: 0 / 466.7 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-06/0.1133, allocations: 4 kB / 466.7 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001041/0.1134, allocations: 165.7 kB / 466.9 MB, free: 404 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1134, allocations: 0 / 466.9 MB, free: 404 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.883e-06/0.1134, allocations: 3.938 kB / 466.9 MB, free: 400 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1134, allocations: 8 kB / 466.9 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-06/0.1134, allocations: 0 / 466.9 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.1134, allocations: 0 / 466.9 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.1134, allocations: 4 kB / 466.9 MB, free: 388 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001266/0.1136, allocations: 128.9 kB / 467 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.479e-05/0.1136, allocations: 84.95 kB / 467.1 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.01e-05/0.1136, allocations: 4 kB / 467.1 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.002e-05/0.1137, allocations: 3.984 kB / 467.1 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.071e-05/0.1137, allocations: 4.031 kB / 467.1 MB, free: 124 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.1137, allocations: 0 / 467.1 MB, free: 124 kB / 334.1 MB Notification: Performance of sorting global known variables: time 2.99e-05/0.1137, allocations: 75.28 kB / 467.2 MB, free: 48 kB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1137, allocations: 0 / 467.2 MB, free: 48 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001856/0.1139, allocations: 15.94 kB / 467.2 MB, free: 32 kB / 334.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.0003321/0.1143, allocations: 146.9 kB / 467.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001226/0.1144, allocations: 67.92 kB / 467.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1144, allocations: 0 / 467.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.735e-05/0.1144, allocations: 43.92 kB / 467.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003664/0.1148, allocations: 32.09 kB / 467.5 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003867/0.1152, allocations: 237.3 kB / 467.7 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000265/0.1155, allocations: 0.6846 MB / 468.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.32e-05/0.1155, allocations: 11.44 kB / 468.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1155, allocations: 0 / 468.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of Templates: time 0.002211/0.1177, allocations: 0.8215 MB / 469.3 MB, free: 13.93 MB / 350.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.makefile (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 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe 2>&1)