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.005327/0.005327, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001211/0.001212, allocations: 192 kB / 16.67 MB, free: 5.969 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/package.mo): time 0.01564/0.01564, allocations: 2.96 MB / 293.5 MB, free: 11.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 60.09 kB / 406.3 MB, free: 28.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1085, allocations: 50.33 MB / 456.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.003125/0.1117, allocations: 1.488 MB / 458.1 MB, free: 8.883 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002436/0.1141, allocations: 1.265 MB / 459.3 MB, free: 7.609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.694e-05/0.1142, allocations: 3.938 kB / 459.4 MB, free: 7.605 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.0004052/0.1147, allocations: 39.78 kB / 459.4 MB, free: 7.566 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001337/0.1148, allocations: 23.86 kB / 459.4 MB, free: 7.543 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003086/0.1151, allocations: 83.77 kB / 459.5 MB, free: 7.461 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001332/0.1153, allocations: 51.92 kB / 459.5 MB, free: 7.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.06e-05/0.1153, allocations: 15.92 kB / 459.6 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.513e-05/0.1154, allocations: 19.88 kB / 459.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001999/0.1156, allocations: 35.84 kB / 459.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.972e-05/0.1156, allocations: 4 kB / 459.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001737/0.1158, allocations: 95.84 kB / 459.7 MB, free: 7.242 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.135e-05/0.1159, allocations: 19.97 kB / 459.7 MB, free: 7.223 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.089e-05/0.1159, allocations: 19.88 kB / 459.8 MB, free: 7.203 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003023/0.1163, allocations: 107.7 kB / 459.9 MB, free: 7.098 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.1163, allocations: 0 / 459.9 MB, free: 7.098 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1163, allocations: 7.938 kB / 459.9 MB, free: 7.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.1163, allocations: 4 kB / 459.9 MB, free: 7.086 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.0006942/0.117, allocations: 396.8 kB / 460.3 MB, free: 6.645 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/0.1171, allocations: 11.89 kB / 460.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.82e-05/0.1171, allocations: 8.891 kB / 460.3 MB, free: 6.625 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002901/0.1174, allocations: 192.2 kB / 460.5 MB, free: 6.398 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.1174, allocations: 384 / 460.5 MB, free: 6.398 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.098e-05/0.1175, allocations: 8.312 kB / 460.5 MB, free: 6.391 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001464/0.1177, allocations: 65.98 kB / 460.5 MB, free: 6.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.1177, allocations: 4 kB / 460.5 MB, free: 6.316 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.1177, allocations: 0 / 460.5 MB, free: 6.316 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.1177, allocations: 0 / 460.5 MB, free: 6.316 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.441e-05/0.1178, allocations: 31.98 kB / 460.6 MB, free: 6.285 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001931/0.118, allocations: 169.6 kB / 460.7 MB, free: 6.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.528e-05/0.1181, allocations: 54.5 kB / 460.8 MB, free: 6.008 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.886e-05/0.1182, allocations: 40.89 kB / 460.8 MB, free: 5.965 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.09e-05/0.1182, allocations: 0 / 460.8 MB, free: 5.965 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000167/0.1184, allocations: 117 kB / 460.9 MB, free: 5.832 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.002e-06/0.1184, allocations: 0 / 460.9 MB, free: 5.832 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003544/0.1187, allocations: 183.3 kB / 461.1 MB, free: 5.641 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.982e-05/0.1188, allocations: 89.05 kB / 461.2 MB, free: 5.535 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001746/0.119, allocations: 121.8 kB / 461.3 MB, free: 5.406 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.119, allocations: 25.7 kB / 461.4 MB, free: 5.375 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.319e-05/0.1191, allocations: 88.12 kB / 461.4 MB, free: 5.285 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.138e-05/0.1191, allocations: 20.05 kB / 461.5 MB, free: 5.266 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.227e-05/0.1191, allocations: 21.72 kB / 461.5 MB, free: 5.238 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002796/0.1194, allocations: 322.8 kB / 461.8 MB, free: 4.914 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.363e-05/0.1195, allocations: 27.98 kB / 461.8 MB, free: 4.887 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.929e-05/0.1195, allocations: 27.98 kB / 461.9 MB, free: 4.859 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001248/0.1197, allocations: 124.6 kB / 462 MB, free: 4.723 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1197, allocations: 0 / 462 MB, free: 4.723 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001916/0.1199, allocations: 163.2 kB / 462.1 MB, free: 4.551 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.753e-05/0.1199, allocations: 37.69 kB / 462.2 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.12, allocations: 4 kB / 462.2 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.12, allocations: 0 / 462.2 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.322e-05/0.1201, allocations: 7.938 kB / 462.2 MB, free: 4.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.1201, allocations: 0 / 462.2 MB, free: 4.496 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.899e-05/0.1201, allocations: 11.94 kB / 462.2 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.1202, allocations: 4 kB / 462.2 MB, free: 4.48 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.0001164/0.1203, allocations: 150.5 kB / 462.3 MB, free: 4.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.339e-05/0.1203, allocations: 15.89 kB / 462.4 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.867e-05/0.1203, allocations: 12.36 kB / 462.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.1203, allocations: 0 / 462.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.1204, allocations: 0 / 462.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.1204, allocations: 0 / 462.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001505/0.1205, allocations: 189.6 kB / 462.6 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1205, allocations: 0 / 462.6 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.117e-05/0.1206, allocations: 7.938 kB / 462.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.1206, allocations: 0 / 462.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.205e-05/0.1206, allocations: 4 kB / 462.6 MB, free: 4.047 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.1206, allocations: 240 / 462.6 MB, free: 4.047 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1206, allocations: 3.938 kB / 462.6 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002792/0.1209, allocations: 214.7 kB / 462.8 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.823e-05/0.1209, allocations: 89.19 kB / 462.9 MB, free: 3.703 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.845e-05/0.121, allocations: 7.984 kB / 462.9 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.194e-05/0.121, allocations: 3.984 kB / 462.9 MB, free: 3.691 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.978e-05/0.1211, allocations: 4 kB / 462.9 MB, free: 3.688 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.1211, allocations: 0 / 462.9 MB, free: 3.688 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.603e-05/0.1212, allocations: 99.27 kB / 463 MB, free: 3.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1212, allocations: 288 / 463 MB, free: 3.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002543/0.1214, allocations: 43.94 kB / 463 MB, free: 3.547 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.0008077/0.1222, allocations: 271.4 kB / 463.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002375/0.1225, allocations: 159.4 kB / 463.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1225, allocations: 0 / 463.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001246/0.1226, allocations: 127.3 kB / 463.6 MB, free: 3.027 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001833/0.1228, allocations: 8 kB / 463.6 MB, free: 3.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003904/0.1232, allocations: 193.4 kB / 463.8 MB, free: 2.805 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003553/0.1236, allocations: 0.6961 MB / 464.5 MB, free: 2.082 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.587e-05/0.1236, allocations: 0 / 464.5 MB, free: 2.082 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.715e-05/0.1236, allocations: 11.44 kB / 464.5 MB, free: 2.07 MB / 334.1 MB Notification: Performance of SimCode: time 7.91e-07/0.1237, allocations: 0 / 464.5 MB, free: 2.07 MB / 334.1 MB Notification: Performance of Templates: time 0.004599/0.1283, allocations: 1.462 MB / 465.9 MB, free: 0.6172 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)