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.3/package.mo", uses=false) Using package ExternData with version 3.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.3/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.001045/0.001045, allocations: 99.08 kB / 15.05 MB, free: 1.105 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.001092/0.001092, allocations: 177.3 kB / 15.94 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.3/package.mo): time 0.1634/0.1634, allocations: 2.942 MB / 293.9 MB, free: 3.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003395/0.0003396, allocations: 8 kB / 355.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1158, allocations: 51.34 MB / 407.1 MB, free: 348 kB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.002192/0.1181, allocations: 1.385 MB / 408.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002433/0.1205, allocations: 1.519 MB / 410 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.039e-05/0.1206, allocations: 4 kB / 410 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002456/0.1209, allocations: 31.84 kB / 410 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003561/0.1213, allocations: 99.64 kB / 410.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002614/0.1215, allocations: 59.86 kB / 410.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002013/0.1217, allocations: 47.88 kB / 410.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.171e-05/0.1218, allocations: 20.22 kB / 410.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.247e-05/0.1219, allocations: 31.84 kB / 410.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001483/0.1221, allocations: 27.91 kB / 410.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.011e-05/0.1221, allocations: 11.92 kB / 410.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002915/0.1224, allocations: 151.8 kB / 410.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.998e-05/0.1225, allocations: 19.92 kB / 410.5 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.561e-05/0.1225, allocations: 45.62 kB / 410.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002712/0.1228, allocations: 167.7 kB / 410.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.1228, allocations: 0 / 410.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1228, allocations: 0 / 410.7 MB, free: 12.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.1228, allocations: 4 kB / 410.7 MB, free: 12.7 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.0005843/0.1234, allocations: 462.8 kB / 411.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.1234, allocations: 12.03 kB / 411.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.824e-05/0.1235, allocations: 11.81 kB / 411.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00024/0.1237, allocations: 206.8 kB / 411.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.1238, allocations: 3.984 kB / 411.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.401e-05/0.1238, allocations: 4 kB / 411.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000218/0.124, allocations: 107.3 kB / 411.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.124, allocations: 0 / 411.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.1241, allocations: 0 / 411.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.1241, allocations: 4 kB / 411.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001366/0.1242, allocations: 51.97 kB / 411.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005448/0.1248, allocations: 317.7 kB / 411.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000365/0.1251, allocations: 97.28 kB / 412 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.321e-05/0.1252, allocations: 0 / 412 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003451/0.1255, allocations: 146.8 kB / 412.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 3.146e-06/0.1255, allocations: 0 / 412.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005064/0.126, allocations: 316.1 kB / 412.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.019e-05/0.1261, allocations: 114.8 kB / 412.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001611/0.1263, allocations: 160 kB / 412.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.1263, allocations: 29.7 kB / 412.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.36e-05/0.1264, allocations: 100 kB / 412.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.822e-05/0.1264, allocations: 31.75 kB / 412.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.711e-06/0.1265, allocations: 0 / 412.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.1266, allocations: 322.8 kB / 413.2 MB, free: 9.977 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.718e-05/0.1267, allocations: 43.98 kB / 413.2 MB, free: 9.934 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.693e-05/0.1268, allocations: 49.69 kB / 413.2 MB, free: 9.879 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001134/0.1269, allocations: 73.62 kB / 413.3 MB, free: 9.801 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1269, allocations: 0 / 413.3 MB, free: 9.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003222/0.1272, allocations: 187.2 kB / 413.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.036e-05/0.1273, allocations: 41.69 kB / 413.5 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.1273, allocations: 4 kB / 413.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.1273, allocations: 3.953 kB / 413.6 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.403e-05/0.1274, allocations: 16 kB / 413.6 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.483e-06/0.1274, allocations: 0 / 413.6 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.058e-05/0.1275, allocations: 19.83 kB / 413.6 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.1276, allocations: 4 kB / 413.6 MB, free: 9.512 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 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001519/0.1277, allocations: 155.5 kB / 413.7 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.747e-05/0.1278, allocations: 15.91 kB / 413.8 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.606e-05/0.1278, allocations: 12.72 kB / 413.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.1278, allocations: 0 / 413.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/0.1278, allocations: 7.938 kB / 413.8 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.1278, allocations: 4 kB / 413.8 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002001/0.128, allocations: 201.5 kB / 414 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.128, allocations: 3.938 kB / 414 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.782e-05/0.1281, allocations: 16.25 kB / 414 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.1281, allocations: 4 kB / 414 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.1281, allocations: 0 / 414 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.1281, allocations: 8 kB / 414 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.644e-06/0.1282, allocations: 0 / 414 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003642/0.1285, allocations: 261.2 kB / 414.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.405e-05/0.1286, allocations: 89 kB / 414.4 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.426e-05/0.1286, allocations: 15.94 kB / 414.4 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.272e-05/0.1287, allocations: 7.984 kB / 414.4 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.127e-05/0.1288, allocations: 7.953 kB / 414.4 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.895e-05/0.1288, allocations: 11.98 kB / 414.4 MB, free: 8.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001017/0.1289, allocations: 119.2 kB / 414.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.462e-06/0.1289, allocations: 4 kB / 414.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003144/0.1292, allocations: 83.8 kB / 414.6 MB, free: 8.387 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008071/0.13, allocations: 394.5 kB / 415 MB, free: 8.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003045/0.1304, allocations: 191.3 kB / 415.2 MB, free: 7.891 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1304, allocations: 0 / 415.2 MB, free: 7.891 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001532/0.1305, allocations: 139.3 kB / 415.3 MB, free: 7.742 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001734/0.1307, allocations: 15.98 kB / 415.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000476/0.1312, allocations: 252.2 kB / 415.6 MB, free: 7.445 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/0.1315, allocations: 0.7004 MB / 416.3 MB, free: 6.719 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.425e-05/0.1316, allocations: 24.41 kB / 416.3 MB, free: 6.695 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.284e-05/0.1316, allocations: 23.42 kB / 416.3 MB, free: 6.672 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1316, allocations: 0 / 416.3 MB, free: 6.672 MB / 350.1 MB Notification: Performance of Templates: time 0.005661/0.1373, allocations: 2.526 MB / 418.8 MB, free: 4.148 MB / 350.1 MB make -j1 -f ExternData_ExternData.Examples.JSONTest.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: