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.0008512/0.0008513, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005894/0.005894, allocations: 169 kB / 16.26 MB, free: 6.652 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.393/1.393, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/package.mo): time 0.1641/0.1641, allocations: 2.954 MB / 294.4 MB, free: 3.918 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003145/0.0003147, allocations: 8 kB / 356.5 MB, free: 3.379 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1033, allocations: 51.35 MB / 407.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.00204/0.1054, allocations: 1.412 MB / 409.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002035/0.1074, allocations: 1.596 MB / 410.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.365e-05/0.1075, allocations: 4 kB / 410.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002383/0.1078, allocations: 39.84 kB / 410.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002497/0.108, allocations: 95.66 kB / 411 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002128/0.1082, allocations: 63.88 kB / 411 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.813e-05/0.1083, allocations: 83.75 kB / 411.1 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.301e-05/0.1084, allocations: 8.219 kB / 411.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.66e-05/0.1085, allocations: 35.8 kB / 411.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001317/0.1086, allocations: 43.83 kB / 411.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.529e-05/0.1087, allocations: 4 kB / 411.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002454/0.1089, allocations: 187.8 kB / 411.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.833e-05/0.109, allocations: 19.92 kB / 411.4 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.36e-05/0.109, allocations: 69.42 kB / 411.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002774/0.1093, allocations: 215.5 kB / 411.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1093, allocations: 0 / 411.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1093, allocations: 0 / 411.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.097e-06/0.1094, allocations: 0 / 411.7 MB, free: 12.09 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.0004772/0.1098, allocations: 448.8 kB / 412.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.128e-05/0.1099, allocations: 12.03 kB / 412.1 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.533e-05/0.1099, allocations: 8.844 kB / 412.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001776/0.1101, allocations: 196.2 kB / 412.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.1101, allocations: 384 / 412.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.713e-05/0.1101, allocations: 8.125 kB / 412.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002057/0.1103, allocations: 99.38 kB / 412.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.1104, allocations: 0 / 412.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.301e-05/0.1104, allocations: 7.984 kB / 412.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.1104, allocations: 0 / 412.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001379/0.1105, allocations: 63.84 kB / 412.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003431/0.1109, allocations: 313.6 kB / 412.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002256/0.1111, allocations: 97.22 kB / 412.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.1112, allocations: 61.73 kB / 413 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.1113, allocations: 8 kB / 413 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002151/0.1115, allocations: 134.7 kB / 413.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.283e-06/0.1115, allocations: 0 / 413.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004275/0.1119, allocations: 235.2 kB / 413.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.426e-05/0.112, allocations: 110.8 kB / 413.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.1121, allocations: 137.8 kB / 413.6 MB, free: 9.934 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.1121, allocations: 29.7 kB / 413.6 MB, free: 9.898 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.878e-05/0.1122, allocations: 88.14 kB / 413.7 MB, free: 9.809 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.289e-05/0.1122, allocations: 35.69 kB / 413.7 MB, free: 9.773 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.266e-05/0.1123, allocations: 17.72 kB / 413.8 MB, free: 9.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.1124, allocations: 326.8 kB / 414.1 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.682e-05/0.1125, allocations: 39.98 kB / 414.1 MB, free: 9.383 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.547e-05/0.1126, allocations: 53.69 kB / 414.2 MB, free: 9.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001849/0.1128, allocations: 145.1 kB / 414.3 MB, free: 9.164 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1128, allocations: 0 / 414.3 MB, free: 9.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002933/0.1131, allocations: 203.1 kB / 414.5 MB, free: 8.953 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.419e-05/0.1131, allocations: 33.7 kB / 414.5 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.1132, allocations: 0 / 414.5 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.1132, allocations: 3.938 kB / 414.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.223e-05/0.1132, allocations: 15.98 kB / 414.6 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.1132, allocations: 0 / 414.6 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.849e-05/0.1133, allocations: 12 kB / 414.6 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.1133, allocations: 7.938 kB / 414.6 MB, free: 8.875 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.0001089/0.1135, allocations: 163.4 kB / 414.7 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.086e-05/0.1135, allocations: 7.906 kB / 414.7 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.906e-05/0.1135, allocations: 16.36 kB / 414.8 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.227e-06/0.1135, allocations: 0 / 414.8 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1135, allocations: 3.938 kB / 414.8 MB, free: 8.676 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1135, allocations: 4 kB / 414.8 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001468/0.1137, allocations: 205.4 kB / 415 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1137, allocations: 0 / 415 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.226e-05/0.1138, allocations: 12 kB / 415 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.1138, allocations: 7.984 kB / 415 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.1138, allocations: 8 kB / 415 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.1138, allocations: 3.938 kB / 415 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1138, allocations: 336 / 415 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003423/0.1142, allocations: 243.5 kB / 415.2 MB, free: 8.125 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.616e-05/0.1142, allocations: 97.05 kB / 415.3 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.249e-05/0.1143, allocations: 8 kB / 415.3 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.021e-05/0.1143, allocations: 8 kB / 415.3 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.241e-05/0.1144, allocations: 7.984 kB / 415.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.821e-05/0.1144, allocations: 7.938 kB / 415.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001086/0.1145, allocations: 107.3 kB / 415.5 MB, free: 7.875 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1145, allocations: 0 / 415.5 MB, free: 7.875 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003102/0.1149, allocations: 79.92 kB / 415.5 MB, free: 7.797 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.0007954/0.1157, allocations: 403 kB / 415.9 MB, free: 7.492 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003048/0.116, allocations: 187.3 kB / 416.1 MB, free: 7.297 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.116, allocations: 0 / 416.1 MB, free: 7.297 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001646/0.1162, allocations: 139.3 kB / 416.3 MB, free: 7.148 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002239/0.1164, allocations: 19.98 kB / 416.3 MB, free: 7.129 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004423/0.1168, allocations: 271.9 kB / 416.5 MB, free: 6.828 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/0.1172, allocations: 0.7043 MB / 417.2 MB, free: 6.098 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.925e-05/0.1173, allocations: 7.984 kB / 417.3 MB, free: 6.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.768e-05/0.1173, allocations: 11.44 kB / 417.3 MB, free: 6.078 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1173, allocations: 0 / 417.3 MB, free: 6.078 MB / 350.1 MB Notification: Performance of Templates: time 0.005548/0.1228, allocations: 2.418 MB / 419.7 MB, free: 3.668 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)