Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternData_ExternData.Examples.JSONTest.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.JSONTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.JSONTest") translateModel(ExternData.Examples.JSONTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.JSONTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001326/0.001326, allocations: 192 kB / 16.25 MB, free: 6.637 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.371/1.371, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/package.mo): time 0.2029/0.2029, allocations: 2.938 MB / 293 MB, free: 3.195 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001017/0.001017, allocations: 63.91 kB / 354.2 MB, free: 4.094 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1037, allocations: 50.34 MB / 404.5 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.002987/0.1068, allocations: 1.755 MB / 406.3 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002036/0.1088, allocations: 1.585 MB / 407.9 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.996e-05/0.1089, allocations: 7.938 kB / 407.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002566/0.1092, allocations: 35.84 kB / 407.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000288/0.1095, allocations: 95.66 kB / 408 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002015/0.1097, allocations: 83.86 kB / 408.1 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001243/0.1098, allocations: 91.7 kB / 408.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.86e-05/0.1099, allocations: 16.22 kB / 408.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.155e-05/0.1099, allocations: 39.84 kB / 408.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.994e-05/0.11, allocations: 35.84 kB / 408.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.425e-05/0.1101, allocations: 4 kB / 408.3 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002277/0.1103, allocations: 211.7 kB / 408.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.135e-05/0.1103, allocations: 23.92 kB / 408.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.478e-05/0.1104, allocations: 31.8 kB / 408.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002371/0.1106, allocations: 219.5 kB / 408.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.473e-06/0.1106, allocations: 3.938 kB / 408.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.02e-07/0.1106, allocations: 0 / 408.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.615e-06/0.1106, allocations: 0 / 408.7 MB, free: 13.46 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004126/0.1111, allocations: 464.8 kB / 409.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.718e-05/0.1111, allocations: 19.88 kB / 409.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.051e-05/0.1111, allocations: 8.844 kB / 409.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001496/0.1113, allocations: 196.2 kB / 409.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.803e-06/0.1113, allocations: 4.375 kB / 409.4 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.265e-05/0.1113, allocations: 12.11 kB / 409.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001488/0.1115, allocations: 91.38 kB / 409.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.747e-06/0.1115, allocations: 3.938 kB / 409.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.1115, allocations: 0 / 409.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.1115, allocations: 8 kB / 409.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001065/0.1116, allocations: 47.97 kB / 409.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003616/0.112, allocations: 305.7 kB / 409.9 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000197/0.1122, allocations: 105.2 kB / 410 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.814e-05/0.1123, allocations: 49.75 kB / 410 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.794e-06/0.1123, allocations: 7.938 kB / 410 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002133/0.1125, allocations: 138.7 kB / 410.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.083e-06/0.1125, allocations: 4 kB / 410.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003761/0.1129, allocations: 235.2 kB / 410.4 MB, free: 11.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.12e-05/0.113, allocations: 110.8 kB / 410.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.1131, allocations: 137.8 kB / 410.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.1131, allocations: 29.7 kB / 410.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.464e-05/0.1132, allocations: 88.14 kB / 410.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.82e-05/0.1132, allocations: 31.55 kB / 410.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.415e-05/0.1132, allocations: 29.72 kB / 410.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.1134, allocations: 322.8 kB / 411.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.236e-05/0.1134, allocations: 35.98 kB / 411.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.811e-05/0.1135, allocations: 53.69 kB / 411.2 MB, free: 10.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001687/0.1137, allocations: 149 kB / 411.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.1137, allocations: 0 / 411.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002737/0.114, allocations: 195.2 kB / 411.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.857e-05/0.114, allocations: 33.7 kB / 411.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.324e-06/0.114, allocations: 0 / 411.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.47e-06/0.114, allocations: 0 / 411.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.301e-05/0.1141, allocations: 11.98 kB / 411.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/0.1141, allocations: 4 kB / 411.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.676e-05/0.1142, allocations: 11.91 kB / 411.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.119e-05/0.1142, allocations: 7.938 kB / 411.6 MB, free: 10.25 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (7): * Single equations (assignments): 6 * 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.0001048/0.1143, allocations: 158 kB / 411.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.632e-05/0.1143, allocations: 11.91 kB / 411.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.35e-05/0.1144, allocations: 20.3 kB / 411.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.1144, allocations: 336 / 411.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.1144, allocations: 0 / 411.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.1144, allocations: 4 kB / 411.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001414/0.1145, allocations: 205.5 kB / 412 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1145, allocations: 0 / 412 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.507e-05/0.1146, allocations: 11.98 kB / 412 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.1146, allocations: 8 kB / 412 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.1146, allocations: 7.984 kB / 412 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1146, allocations: 8 kB / 412 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.1146, allocations: 0 / 412 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003082/0.1149, allocations: 243.4 kB / 412.3 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.636e-05/0.115, allocations: 85.02 kB / 412.4 MB, free: 9.395 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.336e-05/0.115, allocations: 4 kB / 412.4 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.63e-05/0.1151, allocations: 7.984 kB / 412.4 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.361e-05/0.1151, allocations: 11.94 kB / 412.4 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.1151, allocations: 11.92 kB / 412.4 MB, free: 9.359 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.256e-05/0.1152, allocations: 107.3 kB / 412.5 MB, free: 9.254 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.383e-06/0.1152, allocations: 0 / 412.5 MB, free: 9.254 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002798/0.1155, allocations: 75.92 kB / 412.6 MB, free: 9.18 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (6): * Single equations (assignments): 5 * 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.0006761/0.1162, allocations: 399.9 kB / 413 MB, free: 8.875 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002473/0.1164, allocations: 187.3 kB / 413.2 MB, free: 8.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.062e-06/0.1164, allocations: 4 kB / 413.2 MB, free: 8.676 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001296/0.1166, allocations: 135.4 kB / 413.3 MB, free: 8.531 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001795/0.1168, allocations: 12 kB / 413.3 MB, free: 8.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003473/0.1171, allocations: 271.1 kB / 413.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/0.1174, allocations: 0.704 MB / 414.3 MB, free: 7.492 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.845e-05/0.1174, allocations: 4 kB / 414.3 MB, free: 7.488 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.827e-05/0.1174, allocations: 19.42 kB / 414.3 MB, free: 7.469 MB / 350.1 MB Notification: Performance of SimCode: time 1.91e-07/0.1174, allocations: 0 / 414.3 MB, free: 7.469 MB / 350.1 MB Notification: Performance of Templates: time 0.005077/0.1225, allocations: 2.484 MB / 416.8 MB, free: 5 MB / 350.1 MB make -j1 -f ExternData_ExternData.Examples.JSONTest.makefile (rm -f ExternData_ExternData.Examples.JSONTest.pipe ; mkfifo ExternData_ExternData.Examples.JSONTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.JSONTest.pipe >> ../files/ExternData_ExternData.Examples.JSONTest.sim & ./ExternData_ExternData.Examples.JSONTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternData_ExternData.Examples.JSONTest.pipe 2>&1)