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-master/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/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.001287/0.001287, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 196.1 kB / 16.79 MB, free: 6.809 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.352/1.352, allocations: 222.9 MB / 240.5 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1091/0.1091, allocations: 2.945 MB / 293.6 MB, free: 4.031 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.001301, allocations: 59.91 kB / 354.6 MB, free: 4.867 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08359/0.08494, allocations: 50.33 MB / 405 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.002842/0.08781, allocations: 1.763 MB / 406.7 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002196/0.09002, allocations: 1.62 MB / 408.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.78e-05/0.09008, allocations: 4 kB / 408.4 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002291/0.09032, allocations: 31.84 kB / 408.4 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002519/0.09058, allocations: 99.66 kB / 408.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00024/0.09083, allocations: 63.88 kB / 408.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.337e-05/0.09094, allocations: 79.77 kB / 408.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.689e-05/0.09102, allocations: 32.06 kB / 408.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.701e-05/0.09113, allocations: 35.86 kB / 408.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001327/0.09127, allocations: 35.83 kB / 408.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.024e-05/0.0913, allocations: 4 kB / 408.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002586/0.09156, allocations: 191.7 kB / 408.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.778e-05/0.09162, allocations: 19.92 kB / 408.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.286e-05/0.09172, allocations: 35.78 kB / 409 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002252/0.09195, allocations: 155.8 kB / 409.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.09197, allocations: 0 / 409.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.09197, allocations: 0 / 409.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.114e-06/0.09199, allocations: 4 kB / 409.1 MB, free: 14.3 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.0005445/0.09254, allocations: 456.8 kB / 409.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.784e-05/0.0926, allocations: 8.031 kB / 409.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.262e-05/0.09266, allocations: 12.84 kB / 409.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002086/0.09287, allocations: 192.2 kB / 409.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.095e-06/0.0929, allocations: 4.375 kB / 409.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.745e-05/0.09292, allocations: 8.125 kB / 409.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001962/0.09312, allocations: 99.31 kB / 409.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.09314, allocations: 0 / 409.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.09315, allocations: 4 kB / 409.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.09316, allocations: 0 / 409.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001339/0.0933, allocations: 55.91 kB / 410 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003976/0.09371, allocations: 309.6 kB / 410.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002602/0.09398, allocations: 97.12 kB / 410.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.09409, allocations: 61.83 kB / 410.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.085e-05/0.09411, allocations: 0 / 410.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002133/0.09433, allocations: 142.9 kB / 410.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.222e-06/0.09434, allocations: 0 / 410.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004891/0.09484, allocations: 223.2 kB / 410.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.618e-05/0.0949, allocations: 106.8 kB / 410.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.09505, allocations: 140.5 kB / 411 MB, free: 12.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.09507, allocations: 33.64 kB / 411 MB, free: 12.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.442e-05/0.09513, allocations: 92.05 kB / 411.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.023e-05/0.09516, allocations: 31.64 kB / 411.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.72e-05/0.09522, allocations: 25.7 kB / 411.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.704e-05/0.09532, allocations: 318.8 kB / 411.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.09545, allocations: 43.97 kB / 411.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.322e-05/0.09555, allocations: 45.7 kB / 411.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000192/0.09574, allocations: 156.9 kB / 411.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.09577, allocations: 3.938 kB / 411.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003354/0.09611, allocations: 187.5 kB / 411.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.1e-05/0.09616, allocations: 41.69 kB / 412 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.09617, allocations: 0 / 412 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.09618, allocations: 4.031 kB / 412 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.755e-05/0.09626, allocations: 15.94 kB / 412 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.09627, allocations: 0 / 412 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.09638, allocations: 11.98 kB / 412 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.344e-05/0.0964, allocations: 11.94 kB / 412 MB, free: 11.11 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.0001051/0.09651, allocations: 159.5 kB / 412.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.836e-05/0.09655, allocations: 11.91 kB / 412.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.629e-05/0.09659, allocations: 8.375 kB / 412.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.09661, allocations: 0 / 412.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.09663, allocations: 4 kB / 412.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.09664, allocations: 0 / 412.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001489/0.09679, allocations: 205.4 kB / 412.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.0968, allocations: 4 kB / 412.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.638e-05/0.09687, allocations: 15.98 kB / 412.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.09688, allocations: 0 / 412.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.09689, allocations: 4 kB / 412.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/0.0969, allocations: 3.938 kB / 412.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.09691, allocations: 0 / 412.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003942/0.09731, allocations: 243.4 kB / 412.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.036e-05/0.09736, allocations: 93 kB / 412.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.072e-05/0.0974, allocations: 8 kB / 412.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.764e-05/0.09749, allocations: 4 kB / 412.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.982e-05/0.09754, allocations: 7.984 kB / 412.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.412e-05/0.09757, allocations: 11.94 kB / 412.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.722e-05/0.09764, allocations: 103.3 kB / 412.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.09765, allocations: 0 / 412.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002883/0.09794, allocations: 75.92 kB / 413 MB, free: 10.05 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.0008281/0.09878, allocations: 414.1 kB / 413.4 MB, free: 9.746 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003212/0.09911, allocations: 187.3 kB / 413.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.09912, allocations: 0 / 413.5 MB, free: 9.551 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001564/0.09929, allocations: 139.3 kB / 413.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002136/0.09951, allocations: 15.98 kB / 413.7 MB, free: 9.387 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004714/0.1, allocations: 258.9 kB / 414 MB, free: 9.094 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000218/0.1002, allocations: 0.6926 MB / 414.6 MB, free: 8.375 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.349e-05/0.1003, allocations: 15.42 kB / 414.7 MB, free: 8.359 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1003, allocations: 0 / 414.7 MB, free: 8.359 MB / 350.1 MB Notification: Performance of Templates: time 0.004493/0.1048, allocations: 2.589 MB / 417.2 MB, free: 5.777 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)