Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.MATTest.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/ExternData 3.0.4/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/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(ExternData.Examples.MATTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.MATTest") translateModel(ExternData.Examples.MATTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.MATTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009581/0.009581, allocations: 101.7 kB / 15.73 MB, free: 6.039 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.001957/0.001957, allocations: 194.2 kB / 16.68 MB, free: 5.957 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/package.mo): time 0.01838/0.01838, allocations: 2.951 MB / 293.5 MB, free: 11.79 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 60.05 kB / 406.3 MB, free: 28.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.103, allocations: 50.33 MB / 456.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.003171/0.1062, allocations: 1.496 MB / 458.1 MB, free: 8.781 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001944/0.1082, allocations: 1.261 MB / 459.3 MB, free: 7.512 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.435e-05/0.1083, allocations: 8 kB / 459.3 MB, free: 7.504 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/package.mo:141:3-163:14:writable] Warning: Pure function 'ExternData.MATFile' contains a call to impure function 'ExternData.Types.ExternMATFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0004013/0.1087, allocations: 31.83 kB / 459.4 MB, free: 7.473 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001184/0.1088, allocations: 39.72 kB / 459.4 MB, free: 7.434 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002929/0.1091, allocations: 75.78 kB / 459.5 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001311/0.1092, allocations: 55.91 kB / 459.5 MB, free: 7.305 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.38e-05/0.1093, allocations: 11.92 kB / 459.6 MB, free: 7.293 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.005e-05/0.1094, allocations: 27.88 kB / 459.6 MB, free: 7.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002179/0.1096, allocations: 23.91 kB / 459.6 MB, free: 7.242 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.802e-05/0.1096, allocations: 11.94 kB / 459.6 MB, free: 7.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000179/0.1098, allocations: 99.84 kB / 459.7 MB, free: 7.133 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.472e-05/0.1099, allocations: 15.98 kB / 459.7 MB, free: 7.117 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.424e-05/0.11, allocations: 19.88 kB / 459.8 MB, free: 7.098 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002494/0.1102, allocations: 115.8 kB / 459.9 MB, free: 6.984 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.892e-06/0.1102, allocations: 0 / 459.9 MB, free: 6.984 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.1102, allocations: 0 / 459.9 MB, free: 6.984 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.667e-06/0.1102, allocations: 0 / 459.9 MB, free: 6.984 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006245/0.1109, allocations: 397 kB / 460.3 MB, free: 6.543 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.1109, allocations: 19.89 kB / 460.3 MB, free: 6.523 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.441e-05/0.111, allocations: 4.844 kB / 460.3 MB, free: 6.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003139/0.1113, allocations: 180.4 kB / 460.5 MB, free: 6.305 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.1114, allocations: 12.31 kB / 460.5 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.51e-05/0.1114, allocations: 384 / 460.5 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001669/0.1115, allocations: 61.98 kB / 460.5 MB, free: 6.227 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.1116, allocations: 0 / 460.5 MB, free: 6.227 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.1116, allocations: 4 kB / 460.5 MB, free: 6.223 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.1116, allocations: 0 / 460.5 MB, free: 6.223 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.405e-05/0.1117, allocations: 27.98 kB / 460.6 MB, free: 6.195 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002072/0.1119, allocations: 173.6 kB / 460.7 MB, free: 5.977 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.825e-05/0.112, allocations: 58.48 kB / 460.8 MB, free: 5.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.985e-05/0.1121, allocations: 44.89 kB / 460.8 MB, free: 5.863 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.235e-05/0.1121, allocations: 0 / 460.8 MB, free: 5.863 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001812/0.1123, allocations: 117.1 kB / 460.9 MB, free: 5.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.473e-06/0.1123, allocations: 4 kB / 460.9 MB, free: 5.727 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003836/0.1127, allocations: 183.4 kB / 461.1 MB, free: 5.535 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.991e-05/0.1127, allocations: 85.05 kB / 461.2 MB, free: 5.434 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/0.1129, allocations: 125.7 kB / 461.3 MB, free: 5.301 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.1129, allocations: 25.7 kB / 461.4 MB, free: 5.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.55e-05/0.1129, allocations: 92.12 kB / 461.4 MB, free: 5.176 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.811e-05/0.113, allocations: 19.75 kB / 461.5 MB, free: 5.156 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.046e-05/0.113, allocations: 17.7 kB / 461.5 MB, free: 5.133 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.1132, allocations: 322.8 kB / 461.8 MB, free: 4.809 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.897e-05/0.1132, allocations: 27.98 kB / 461.8 MB, free: 4.781 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.238e-05/0.1133, allocations: 27.98 kB / 461.9 MB, free: 4.754 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001461/0.1134, allocations: 116.2 kB / 462 MB, free: 4.625 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1134, allocations: 0 / 462 MB, free: 4.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002033/0.1137, allocations: 163.6 kB / 462.1 MB, free: 4.453 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.472e-05/0.1137, allocations: 41.69 kB / 462.2 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.1137, allocations: 0 / 462.2 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.1138, allocations: 0 / 462.2 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.158e-05/0.1138, allocations: 4 kB / 462.2 MB, free: 4.402 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.1138, allocations: 7.938 kB / 462.2 MB, free: 4.395 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.072e-05/0.1139, allocations: 7.906 kB / 462.2 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.129e-05/0.1139, allocations: 4 kB / 462.2 MB, free: 4.383 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: 7 (timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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.0001205/0.1141, allocations: 154.7 kB / 462.3 MB, free: 4.219 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.125e-05/0.1141, allocations: 11.88 kB / 462.4 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.576e-05/0.1141, allocations: 12.36 kB / 462.4 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.1141, allocations: 0 / 462.4 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1141, allocations: 0 / 462.4 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.1141, allocations: 4 kB / 462.4 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001399/0.1143, allocations: 189.5 kB / 462.6 MB, free: 3.957 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1143, allocations: 0 / 462.6 MB, free: 3.957 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.287e-05/0.1143, allocations: 3.938 kB / 462.6 MB, free: 3.953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.1143, allocations: 4 kB / 462.6 MB, free: 3.949 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.1143, allocations: 4 kB / 462.6 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.1144, allocations: 0 / 462.6 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1144, allocations: 0 / 462.6 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002679/0.1146, allocations: 210.7 kB / 462.8 MB, free: 3.715 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.573e-05/0.1147, allocations: 92.89 kB / 462.9 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.587e-05/0.1147, allocations: 7.984 kB / 462.9 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.957e-05/0.1148, allocations: 0 / 462.9 MB, free: 3.598 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.637e-05/0.1148, allocations: 8 kB / 462.9 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.795e-05/0.1148, allocations: 4 kB / 462.9 MB, free: 3.586 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.094e-05/0.1149, allocations: 99.2 kB / 463 MB, free: 3.488 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1149, allocations: 0 / 463 MB, free: 3.488 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002525/0.1152, allocations: 43.98 kB / 463 MB, free: 3.445 MB / 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: 6 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 1 * 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.00931/0.1245, allocations: 265.1 kB / 463.3 MB, free: 3.238 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004554/0.125, allocations: 163.4 kB / 463.4 MB, free: 3.066 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/0.125, allocations: 0 / 463.4 MB, free: 3.066 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001631/0.1252, allocations: 119.4 kB / 463.6 MB, free: 2.938 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003287/0.1255, allocations: 15.94 kB / 463.6 MB, free: 2.922 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004641/0.126, allocations: 185.4 kB / 463.8 MB, free: 2.715 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.1263, allocations: 0.6922 MB / 464.4 MB, free: 1.996 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.832e-05/0.1263, allocations: 8 kB / 464.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.623e-05/0.1264, allocations: 7.438 kB / 464.5 MB, free: 1.98 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1264, allocations: 0 / 464.5 MB, free: 1.98 MB / 334.1 MB Notification: Performance of Templates: time 0.004724/0.1311, allocations: 1.462 MB / 465.9 MB, free: 0.5273 MB / 334.1 MB make -j1 -f ExternData_ExternData.Examples.MATTest.makefile (rm -f ExternData_ExternData.Examples.MATTest.pipe ; mkfifo ExternData_ExternData.Examples.MATTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.MATTest.pipe >> ../files/ExternData_ExternData.Examples.MATTest.sim & ./ExternData_ExternData.Examples.MATTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternData_ExternData.Examples.MATTest.pipe 2>&1)