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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 110.5 kB / 17.6 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001747/0.001747, allocations: 186.8 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 225.6 MB / 249.4 MB, free: 3.301 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5-master/package.mo): time 0.01443/0.01443, allocations: 2.981 MB / 307.5 MB, free: 3.168 MB / 238.1 MB " [Timeout remaining time 180] Using package ExternData with version 3.0.5 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5-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=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 0.001882/0.001882, allocations: 63.91 kB / 428.7 MB, free: 1.48 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2936, allocations: 53.07 MB / 481.8 MB, free: 27.49 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.002961/0.2965, allocations: 1.728 MB / 483.5 MB, free: 26.3 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001897/0.2984, allocations: 1.706 MB / 485.2 MB, free: 25.12 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.053e-05/0.2985, allocations: 0 / 485.2 MB, free: 25.12 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5-master/package.mo:104:3-139:15:writable] Warning: Pure function 'ExternData.JSONFile' contains a call to impure function 'ExternData.Types.ExternJSONFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003449/0.2988, allocations: 39.34 kB / 485.3 MB, free: 25.1 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003086/0.2991, allocations: 121.6 kB / 485.4 MB, free: 25.03 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002175/0.2994, allocations: 89.28 kB / 485.5 MB, free: 25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001317/0.2995, allocations: 83.53 kB / 485.5 MB, free: 24.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.2996, allocations: 6.984 kB / 485.6 MB, free: 24.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.397e-05/0.2997, allocations: 43.36 kB / 485.6 MB, free: 24.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002163/0.2999, allocations: 43.25 kB / 485.6 MB, free: 24.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.797e-05/0.2999, allocations: 6.375 kB / 485.6 MB, free: 24.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003071/0.3002, allocations: 208.9 kB / 485.8 MB, free: 24.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.536e-05/0.3003, allocations: 24.55 kB / 485.9 MB, free: 24.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.603e-05/0.3003, allocations: 36.22 kB / 485.9 MB, free: 24.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003411/0.3007, allocations: 219.6 kB / 486.1 MB, free: 24.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3007, allocations: 0 / 486.1 MB, free: 24.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3007, allocations: 0 / 486.1 MB, free: 24.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.241e-06/0.3007, allocations: 0 / 486.1 MB, free: 24.73 MB / 366.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.0006655/0.3014, allocations: 470.2 kB / 486.6 MB, free: 24.28 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.3014, allocations: 10.55 kB / 486.6 MB, free: 24.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.48e-05/0.3015, allocations: 11.08 kB / 486.6 MB, free: 24.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003325/0.3018, allocations: 207 kB / 486.8 MB, free: 24.05 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.618e-06/0.3018, allocations: 4.375 kB / 486.8 MB, free: 24.05 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.288e-05/0.3018, allocations: 7.156 kB / 486.8 MB, free: 24.04 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002182/0.302, allocations: 92.72 kB / 486.9 MB, free: 23.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.3021, allocations: 4 kB / 486.9 MB, free: 23.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.912e-05/0.3021, allocations: 7.094 kB / 486.9 MB, free: 23.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.3021, allocations: 0 / 486.9 MB, free: 23.98 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001228/0.3022, allocations: 53.59 kB / 487 MB, free: 23.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000372/0.3026, allocations: 294.2 kB / 487.3 MB, free: 23.67 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002315/0.3028, allocations: 93.47 kB / 487.3 MB, free: 23.6 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.584e-05/0.3029, allocations: 50.36 kB / 487.4 MB, free: 23.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.814e-05/0.3029, allocations: 3.938 kB / 487.4 MB, free: 23.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002038/0.3031, allocations: 158 kB / 487.6 MB, free: 23.44 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.243e-06/0.3031, allocations: 0 / 487.6 MB, free: 23.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004355/0.3036, allocations: 222.5 kB / 487.8 MB, free: 23.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/0.3036, allocations: 113.5 kB / 487.9 MB, free: 23.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.3037, allocations: 140.6 kB / 488 MB, free: 23.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.3037, allocations: 29.7 kB / 488 MB, free: 23.06 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.525e-05/0.3038, allocations: 90.84 kB / 488.1 MB, free: 22.97 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.145e-05/0.3038, allocations: 27.03 kB / 488.2 MB, free: 22.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.685e-05/0.3038, allocations: 30.53 kB / 488.2 MB, free: 22.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.982e-05/0.3039, allocations: 325.3 kB / 488.5 MB, free: 22.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.228e-05/0.304, allocations: 40.55 kB / 488.5 MB, free: 22.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.35e-05/0.3041, allocations: 47.11 kB / 488.6 MB, free: 22.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001589/0.3042, allocations: 153.3 kB / 488.7 MB, free: 22.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.3042, allocations: 0 / 488.7 MB, free: 22.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002413/0.3045, allocations: 191.4 kB / 488.9 MB, free: 22.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.926e-05/0.3045, allocations: 41.97 kB / 489 MB, free: 22.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.3045, allocations: 0 / 489 MB, free: 22.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.3045, allocations: 0 / 489 MB, free: 22.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.279e-05/0.3046, allocations: 12.58 kB / 489 MB, free: 22.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.3046, allocations: 2.969 kB / 489 MB, free: 22.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.657e-05/0.3047, allocations: 6.609 kB / 489 MB, free: 22.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.3047, allocations: 10.03 kB / 489 MB, free: 22.31 MB / 366.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.0001188/0.3048, allocations: 166.3 kB / 489.2 MB, free: 22.15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.497e-05/0.3048, allocations: 10.17 kB / 489.2 MB, free: 22.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.724e-05/0.3049, allocations: 15.44 kB / 489.2 MB, free: 22.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.3049, allocations: 0 / 489.2 MB, free: 22.13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.3049, allocations: 0 / 489.2 MB, free: 22.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.3049, allocations: 0 / 489.2 MB, free: 22.13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001458/0.305, allocations: 200.5 kB / 489.4 MB, free: 21.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.305, allocations: 2.969 kB / 489.4 MB, free: 21.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.974e-05/0.3051, allocations: 15.73 kB / 489.4 MB, free: 21.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.3051, allocations: 3.125 kB / 489.4 MB, free: 21.92 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.3051, allocations: 8.094 kB / 489.4 MB, free: 21.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3051, allocations: 0 / 489.4 MB, free: 21.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.3051, allocations: 4 kB / 489.4 MB, free: 21.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003347/0.3054, allocations: 248 kB / 489.7 MB, free: 21.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.652e-05/0.3055, allocations: 86.5 kB / 489.7 MB, free: 21.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.034e-05/0.3055, allocations: 7.984 kB / 489.8 MB, free: 21.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.652e-05/0.3056, allocations: 11.2 kB / 489.8 MB, free: 21.65 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.289e-05/0.3056, allocations: 9.297 kB / 489.8 MB, free: 21.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-05/0.3056, allocations: 11.38 kB / 489.8 MB, free: 21.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.538e-05/0.3057, allocations: 106.2 kB / 489.9 MB, free: 21.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3057, allocations: 0 / 489.9 MB, free: 21.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003114/0.306, allocations: 77.78 kB / 490 MB, free: 21.54 MB / 366.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.001176/0.3072, allocations: 395.6 kB / 490.4 MB, free: 21.35 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003132/0.3075, allocations: 164.7 kB / 490.5 MB, free: 21.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3075, allocations: 4 kB / 490.5 MB, free: 21.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001267/0.3076, allocations: 103.5 kB / 490.6 MB, free: 21.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002419/0.3079, allocations: 21.2 kB / 490.6 MB, free: 21.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004719/0.3083, allocations: 253.1 kB / 490.9 MB, free: 20.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001741/0.3085, allocations: 0.7068 MB / 491.6 MB, free: 20.28 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.59e-05/0.3086, allocations: 4.922 kB / 491.6 MB, free: 20.28 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.255e-05/0.3086, allocations: 15.56 kB / 491.6 MB, free: 20.27 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3086, allocations: 0 / 491.6 MB, free: 20.27 MB / 366.1 MB Notification: Performance of Templates: time 0.007344/0.3159, allocations: 2.574 MB / 494.2 MB, free: 20 MB / 366.1 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=480 -lv LOG_STATS > ExternData_ExternData.Examples.JSONTest.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.844828937202692]