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.006987/0.006987, allocations: 100.1 kB / 15.73 MB, free: 6.043 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.00156/0.00156, allocations: 196.3 kB / 16.68 MB, free: 5.961 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/package.mo): time 0.01392/0.01392, allocations: 2.943 MB / 293.5 MB, free: 11.78 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 71.88 kB / 406.3 MB, free: 28.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1039, allocations: 50.33 MB / 456.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.MATTest): time 0.002857/0.1068, allocations: 1.492 MB / 458.1 MB, free: 8.871 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001819/0.1086, allocations: 1.265 MB / 459.3 MB, free: 7.598 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.5e-05/0.1087, allocations: 3.938 kB / 459.3 MB, free: 7.594 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.0003474/0.109, allocations: 35.78 kB / 459.4 MB, free: 7.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.777e-05/0.1092, allocations: 31.78 kB / 459.4 MB, free: 7.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002718/0.1094, allocations: 75.8 kB / 459.5 MB, free: 7.453 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001166/0.1096, allocations: 59.84 kB / 459.5 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.447e-05/0.1096, allocations: 11.92 kB / 459.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.103e-05/0.1097, allocations: 27.92 kB / 459.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001757/0.1099, allocations: 19.92 kB / 459.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.841e-05/0.1099, allocations: 7.938 kB / 459.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001753/0.1101, allocations: 107.8 kB / 459.7 MB, free: 7.223 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.344e-05/0.1101, allocations: 8 kB / 459.7 MB, free: 7.215 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.139e-05/0.1102, allocations: 27.84 kB / 459.8 MB, free: 7.188 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002072/0.1104, allocations: 115.8 kB / 459.9 MB, free: 7.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1104, allocations: 4 kB / 459.9 MB, free: 7.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1104, allocations: 0 / 459.9 MB, free: 7.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.1104, allocations: 0 / 459.9 MB, free: 7.07 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.0005317/0.111, allocations: 404.9 kB / 460.3 MB, free: 6.621 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.111, allocations: 11.89 kB / 460.3 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.37e-05/0.1111, allocations: 8.844 kB / 460.3 MB, free: 6.602 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002209/0.1113, allocations: 180.4 kB / 460.5 MB, free: 6.387 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.094e-06/0.1113, allocations: 384 / 460.5 MB, free: 6.387 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.409e-05/0.1113, allocations: 384 / 460.5 MB, free: 6.387 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001489/0.1115, allocations: 69.98 kB / 460.5 MB, free: 6.312 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.1115, allocations: 0 / 460.5 MB, free: 6.312 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.1115, allocations: 4 kB / 460.5 MB, free: 6.309 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.1115, allocations: 0 / 460.5 MB, free: 6.309 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.616e-05/0.1116, allocations: 27.98 kB / 460.6 MB, free: 6.281 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000199/0.1118, allocations: 177.5 kB / 460.7 MB, free: 6.059 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.711e-05/0.1119, allocations: 46.56 kB / 460.8 MB, free: 6.004 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.403e-05/0.112, allocations: 40.89 kB / 460.8 MB, free: 5.961 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.478e-06/0.112, allocations: 8 kB / 460.8 MB, free: 5.953 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001597/0.1122, allocations: 109 kB / 460.9 MB, free: 5.828 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 1.252e-06/0.1122, allocations: 0 / 460.9 MB, free: 5.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003432/0.1125, allocations: 187.4 kB / 461.1 MB, free: 5.633 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.092e-05/0.1126, allocations: 85.11 kB / 461.2 MB, free: 5.531 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.1127, allocations: 129.6 kB / 461.3 MB, free: 5.395 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.956e-05/0.1128, allocations: 29.7 kB / 461.4 MB, free: 5.359 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.194e-05/0.1128, allocations: 92.12 kB / 461.4 MB, free: 5.266 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.323e-05/0.1129, allocations: 15.75 kB / 461.5 MB, free: 5.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.453e-05/0.1129, allocations: 21.72 kB / 461.5 MB, free: 5.223 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.113, allocations: 318.8 kB / 461.8 MB, free: 4.902 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.056e-05/0.1131, allocations: 27.98 kB / 461.8 MB, free: 4.875 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.093e-05/0.1132, allocations: 27.98 kB / 461.8 MB, free: 4.848 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00012/0.1133, allocations: 120.2 kB / 462 MB, free: 4.715 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1133, allocations: 0 / 462 MB, free: 4.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002002/0.1135, allocations: 163.2 kB / 462.1 MB, free: 4.543 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.061e-05/0.1135, allocations: 41.69 kB / 462.2 MB, free: 4.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.1136, allocations: 0 / 462.2 MB, free: 4.496 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.1136, allocations: 0 / 462.2 MB, free: 4.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.063e-05/0.1137, allocations: 7.938 kB / 462.2 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.822e-06/0.1137, allocations: 4 kB / 462.2 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.923e-05/0.1137, allocations: 3.906 kB / 462.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.1137, allocations: 4 kB / 462.2 MB, free: 4.477 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.0001279/0.1139, allocations: 154.7 kB / 462.3 MB, free: 4.312 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.039e-05/0.1139, allocations: 11.94 kB / 462.3 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.258e-05/0.1139, allocations: 8.359 kB / 462.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.1139, allocations: 4.469 kB / 462.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.114, allocations: 4 kB / 462.4 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.114, allocations: 0 / 462.4 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001445/0.1141, allocations: 185.5 kB / 462.5 MB, free: 4.055 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.1141, allocations: 0 / 462.5 MB, free: 4.055 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.258e-05/0.1142, allocations: 11.88 kB / 462.6 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.1142, allocations: 0 / 462.6 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.1142, allocations: 144 / 462.6 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.1142, allocations: 4 kB / 462.6 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1142, allocations: 4 kB / 462.6 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002694/0.1145, allocations: 222.9 kB / 462.8 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.06e-05/0.1145, allocations: 88.89 kB / 462.9 MB, free: 3.688 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.57e-05/0.1146, allocations: 4 kB / 462.9 MB, free: 3.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.417e-05/0.1146, allocations: 7.984 kB / 462.9 MB, free: 3.676 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.818e-05/0.1146, allocations: 0 / 462.9 MB, free: 3.676 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.645e-05/0.1147, allocations: 8 kB / 462.9 MB, free: 3.668 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.722e-05/0.1147, allocations: 99.27 kB / 463 MB, free: 3.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1147, allocations: 0 / 463 MB, free: 3.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002352/0.115, allocations: 36 kB / 463 MB, free: 3.535 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.008991/0.124, allocations: 263.5 kB / 463.3 MB, free: 3.328 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003667/0.1244, allocations: 163.3 kB / 463.4 MB, free: 3.156 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1244, allocations: 0 / 463.4 MB, free: 3.156 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000127/0.1245, allocations: 127.4 kB / 463.6 MB, free: 3.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002989/0.1248, allocations: 4 kB / 463.6 MB, free: 3.016 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004771/0.1253, allocations: 193.4 kB / 463.8 MB, free: 2.801 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.1256, allocations: 0.6883 MB / 464.4 MB, free: 2.086 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.098e-05/0.1257, allocations: 7.984 kB / 464.4 MB, free: 2.078 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.685e-05/0.1257, allocations: 7.438 kB / 464.5 MB, free: 2.07 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1257, allocations: 0 / 464.5 MB, free: 2.07 MB / 334.1 MB Notification: Performance of Templates: time 0.004527/0.1302, allocations: 1.461 MB / 465.9 MB, free: 0.6211 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)