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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009238/0.0009238, allocations: 73.97 kB / 20.66 MB, free: 3.844 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 169.4 kB / 24.06 MB, free: 456 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9733/0.9733, allocations: 177.1 MB / 204.5 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo): time 0.008766/0.008766, allocations: 2.26 MB / 263.3 MB, free: 10.63 MB / 250.7 MB " [Timeout remaining time 180] Using package ExternData with version 3.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ExternData.Examples.JSONTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.JSONTest") translateModel(ExternData.Examples.JSONTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.JSONTest") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 334 MB, free: 16.16 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.285e-05/1.43e-05, allocations: 10.31 kB / 334 MB, free: 16.14 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.00182/0.001834, allocations: 1.743 MB / 335.8 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00138/0.003215, allocations: 1.765 MB / 337.5 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.933e-05/0.003274, allocations: 0 / 337.5 MB, free: 12.61 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo:86:3-121:15:writable] Warning: Pure function 'ExternData.JSONFile' contains a call to impure function 'ExternData.Types.ExternJSONFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0002936/0.003567, allocations: 43.66 kB / 337.6 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002764/0.003844, allocations: 127.4 kB / 337.7 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001522/0.003996, allocations: 87.7 kB / 337.8 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.901e-05/0.004095, allocations: 83.77 kB / 337.9 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.223e-05/0.004177, allocations: 8.234 kB / 337.9 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.666e-05/0.004244, allocations: 55.83 kB / 337.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.795e-05/0.004342, allocations: 27.91 kB / 338 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.608e-05/0.004358, allocations: 8 kB / 338 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001929/0.004551, allocations: 187.7 kB / 338.2 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.26e-05/0.004593, allocations: 19.92 kB / 338.2 MB, free: 11.97 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.987e-05/0.004623, allocations: 23.92 kB / 338.2 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002179/0.004841, allocations: 243.2 kB / 338.4 MB, free: 11.71 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.412e-06/0.004843, allocations: 0 / 338.4 MB, free: 11.71 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.004843, allocations: 0 / 338.4 MB, free: 11.71 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.004847, allocations: 4 kB / 338.4 MB, free: 11.71 MB / 266.7 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.0003401/0.005187, allocations: 493 kB / 338.9 MB, free: 11.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.969e-05/0.005217, allocations: 12.03 kB / 338.9 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.41e-05/0.005251, allocations: 8.891 kB / 338.9 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001147/0.005366, allocations: 144.4 kB / 339.1 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.165e-06/0.005374, allocations: 4.375 kB / 339.1 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.548e-06/0.005384, allocations: 4.375 kB / 339.1 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001139/0.005497, allocations: 120 kB / 339.2 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.005504, allocations: 3.938 kB / 339.2 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-06/0.005513, allocations: 8 kB / 339.2 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.005517, allocations: 4 kB / 339.2 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.74e-05/0.005555, allocations: 49.62 kB / 339.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001832/0.005738, allocations: 268.2 kB / 339.5 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001149/0.005853, allocations: 111.9 kB / 339.6 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.013e-05/0.005883, allocations: 61.11 kB / 339.7 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.106e-05/0.005894, allocations: 7.938 kB / 339.7 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.015e-05/0.005984, allocations: 155.8 kB / 339.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 7.51e-07/0.005985, allocations: 0 / 339.9 MB, free: 10.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002022/0.006187, allocations: 226.6 kB / 340.1 MB, free: 9.828 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.374e-05/0.006211, allocations: 110.8 kB / 340.2 MB, free: 9.695 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.391e-05/0.006265, allocations: 189.9 kB / 340.4 MB, free: 9.492 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.566e-06/0.006273, allocations: 29.7 kB / 340.4 MB, free: 9.457 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.401e-05/0.006297, allocations: 138.8 kB / 340.5 MB, free: 9.316 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.203e-05/0.006319, allocations: 35.67 kB / 340.6 MB, free: 9.281 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.972e-05/0.006349, allocations: 31.36 kB / 340.6 MB, free: 9.242 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.824e-05/0.006397, allocations: 0.4923 MB / 341.1 MB, free: 8.738 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.278e-05/0.00642, allocations: 45.69 kB / 341.1 MB, free: 8.688 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.672e-05/0.006447, allocations: 61.05 kB / 341.2 MB, free: 8.613 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.655e-05/0.006503, allocations: 118.6 kB / 341.3 MB, free: 8.477 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.006505, allocations: 0 / 341.3 MB, free: 8.477 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001181/0.006623, allocations: 176.9 kB / 341.5 MB, free: 8.285 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.006643, allocations: 37.69 kB / 341.5 MB, free: 8.242 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.006647, allocations: 4 kB / 341.5 MB, free: 8.238 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.594e-06/0.006655, allocations: 0 / 341.5 MB, free: 8.238 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.247e-05/0.006697, allocations: 15.98 kB / 341.5 MB, free: 8.223 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.765e-06/0.0067, allocations: 0 / 341.5 MB, free: 8.223 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.398e-05/0.006734, allocations: 7.938 kB / 341.6 MB, free: 8.215 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.006742, allocations: 4 kB / 341.6 MB, free: 8.211 MB / 266.7 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 6.105e-05/0.006803, allocations: 201.2 kB / 341.8 MB, free: 8 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.915e-05/0.006822, allocations: 27.83 kB / 341.8 MB, free: 7.973 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.988e-05/0.006842, allocations: 12.44 kB / 341.8 MB, free: 7.957 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.006844, allocations: 0 / 341.8 MB, free: 7.957 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.006847, allocations: 3.984 kB / 341.8 MB, free: 7.953 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.006849, allocations: 0 / 341.8 MB, free: 7.953 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.735e-05/0.006917, allocations: 121.2 kB / 341.9 MB, free: 7.809 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.006917, allocations: 0 / 341.9 MB, free: 7.809 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.18e-05/0.006939, allocations: 15.98 kB / 341.9 MB, free: 7.793 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.31e-07/0.00694, allocations: 0 / 341.9 MB, free: 7.793 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.006949, allocations: 11.94 kB / 341.9 MB, free: 7.781 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-07/0.00695, allocations: 0 / 341.9 MB, free: 7.781 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.006951, allocations: 4 kB / 341.9 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001402/0.007091, allocations: 247.3 kB / 342.2 MB, free: 7.496 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.242e-05/0.007103, allocations: 11.95 kB / 342.2 MB, free: 7.484 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.007122, allocations: 11.92 kB / 342.2 MB, free: 7.473 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.634e-05/0.007149, allocations: 4 kB / 342.2 MB, free: 7.469 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.297e-05/0.007172, allocations: 4 kB / 342.2 MB, free: 7.465 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.007183, allocations: 7.984 kB / 342.2 MB, free: 7.457 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.797e-05/0.007211, allocations: 142.4 kB / 342.4 MB, free: 7.32 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007211, allocations: 0 / 342.4 MB, free: 7.32 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001983/0.007409, allocations: 79.73 kB / 342.4 MB, free: 7.242 MB / 266.7 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.0006906/0.0081, allocations: 432 kB / 342.9 MB, free: 6.906 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001354/0.008235, allocations: 194.4 kB / 343.1 MB, free: 6.688 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-06/0.008237, allocations: 0 / 343.1 MB, free: 6.688 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.234e-05/0.008279, allocations: 124.8 kB / 343.2 MB, free: 6.543 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001541/0.008433, allocations: 16 kB / 343.2 MB, free: 6.527 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002558/0.008689, allocations: 261.5 kB / 343.4 MB, free: 6.234 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.093e-05/0.00871, allocations: 64.16 kB / 343.5 MB, free: 6.152 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.514e-05/0.008735, allocations: 4 kB / 343.5 MB, free: 6.148 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.885e-05/0.008804, allocations: 102.2 kB / 343.6 MB, free: 6.047 MB / 266.7 MB Notification: Performance of SimCode: time 3.91e-07/0.008804, allocations: 4 kB / 343.6 MB, free: 6.043 MB / 266.7 MB Notification: Performance of Templates: time 0.00368/0.01248, allocations: 2.922 MB / 346.5 MB, free: 3.148 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f ExternData_ExternData.Examples.JSONTest.makefile [Timeout 660] (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=240 -lv LOG_STATS > ExternData_ExternData.Examples.JSONTest.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.691601143684238]