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.0009366/0.0009366, allocations: 81.17 kB / 19.87 MB, free: 4.621 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.0009766/0.0009766, allocations: 169 kB / 23.27 MB, free: 1.223 MB / 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.9808/0.9808, allocations: 177.2 MB / 203.7 MB, free: 5.516 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.01078/0.01078, allocations: 2.266 MB / 262.5 MB, free: 10.64 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.293e-06/1.293e-06, allocations: 0 / 333.2 MB, free: 1.242 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.901e-05/2.03e-05, allocations: 4.703 kB / 333.2 MB, free: 1.238 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.003099/0.003119, allocations: 1.752 MB / 335 MB, free: 15.47 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002365/0.005484, allocations: 1.765 MB / 336.8 MB, free: 13.7 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.948e-05/0.005553, allocations: 3.938 kB / 336.8 MB, free: 13.69 MB / 314.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.0002886/0.005842, allocations: 43.72 kB / 336.8 MB, free: 13.65 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003048/0.006147, allocations: 119.4 kB / 336.9 MB, free: 13.53 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001824/0.006329, allocations: 95.7 kB / 337 MB, free: 13.44 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001379/0.006467, allocations: 87.7 kB / 337.1 MB, free: 13.35 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.414e-05/0.006561, allocations: 8.234 kB / 337.1 MB, free: 13.34 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/0.006675, allocations: 51.88 kB / 337.2 MB, free: 13.29 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000135/0.00681, allocations: 27.92 kB / 337.2 MB, free: 13.26 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.309e-05/0.006833, allocations: 8 kB / 337.2 MB, free: 13.25 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003071/0.00714, allocations: 187.6 kB / 337.4 MB, free: 13.07 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.279e-05/0.007203, allocations: 19.92 kB / 337.4 MB, free: 13.05 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 4.481e-05/0.007248, allocations: 27.91 kB / 337.4 MB, free: 13.02 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003737/0.007621, allocations: 247.2 kB / 337.7 MB, free: 12.78 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.007624, allocations: 0 / 337.7 MB, free: 12.78 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.007624, allocations: 0 / 337.7 MB, free: 12.78 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.007629, allocations: 0 / 337.7 MB, free: 12.78 MB / 314.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.000506/0.008135, allocations: 481.5 kB / 338.1 MB, free: 12.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.008176, allocations: 12.03 kB / 338.1 MB, free: 12.26 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.745e-05/0.008223, allocations: 12.89 kB / 338.2 MB, free: 12.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001738/0.008397, allocations: 148.3 kB / 338.3 MB, free: 12.08 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.919e-06/0.008407, allocations: 384 / 338.3 MB, free: 12.08 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.093e-05/0.008418, allocations: 4.375 kB / 338.3 MB, free: 12.07 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001647/0.008583, allocations: 127.9 kB / 338.4 MB, free: 11.93 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-06/0.008592, allocations: 7.938 kB / 338.4 MB, free: 11.92 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.878e-06/0.008602, allocations: 4 kB / 338.4 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.008608, allocations: 0 / 338.4 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.403e-05/0.008672, allocations: 49.67 kB / 338.5 MB, free: 11.86 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002919/0.008964, allocations: 272.1 kB / 338.8 MB, free: 11.56 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001727/0.009136, allocations: 107.9 kB / 338.9 MB, free: 11.43 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.582e-05/0.009192, allocations: 65.14 kB / 338.9 MB, free: 11.35 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.776e-05/0.00921, allocations: 7.938 kB / 338.9 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001542/0.009364, allocations: 159.8 kB / 339.1 MB, free: 11.15 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 1.283e-06/0.009365, allocations: 0 / 339.1 MB, free: 11.15 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002681/0.009633, allocations: 222.6 kB / 339.3 MB, free: 10.91 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.053e-05/0.009674, allocations: 106.8 kB / 339.4 MB, free: 10.78 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.902e-05/0.009773, allocations: 197.2 kB / 339.6 MB, free: 10.57 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.009786, allocations: 25.7 kB / 339.6 MB, free: 10.54 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.589e-05/0.009832, allocations: 142.8 kB / 339.8 MB, free: 10.39 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.958e-05/0.009862, allocations: 27.75 kB / 339.8 MB, free: 10.37 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.338e-05/0.009905, allocations: 31.34 kB / 339.8 MB, free: 10.33 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.01003, allocations: 0.4923 MB / 340.3 MB, free: 9.824 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.384e-05/0.01006, allocations: 45.7 kB / 340.4 MB, free: 9.773 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.676e-05/0.01011, allocations: 76.91 kB / 340.4 MB, free: 9.684 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.749e-05/0.0102, allocations: 106.8 kB / 340.5 MB, free: 9.559 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.0102, allocations: 0 / 340.5 MB, free: 9.559 MB / 314.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001693/0.01037, allocations: 181.2 kB / 340.7 MB, free: 9.363 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.193e-05/0.0104, allocations: 41.69 kB / 340.8 MB, free: 9.316 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.0104, allocations: 0 / 340.8 MB, free: 9.316 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.01041, allocations: 0 / 340.8 MB, free: 9.316 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.976e-05/0.01046, allocations: 11.94 kB / 340.8 MB, free: 9.305 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.01047, allocations: 4 kB / 340.8 MB, free: 9.301 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.249e-05/0.01051, allocations: 15.94 kB / 340.8 MB, free: 9.285 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-06/0.01052, allocations: 4 kB / 340.8 MB, free: 9.281 MB / 314.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 9.105e-05/0.01061, allocations: 194.3 kB / 341 MB, free: 9.074 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.626e-05/0.01064, allocations: 19.84 kB / 341 MB, free: 9.055 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.701e-05/0.01067, allocations: 16.42 kB / 341 MB, free: 9.039 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.01067, allocations: 0 / 341 MB, free: 9.039 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-06/0.01067, allocations: 0 / 341 MB, free: 9.039 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.01067, allocations: 4 kB / 341 MB, free: 9.035 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001025/0.01078, allocations: 121.2 kB / 341.1 MB, free: 8.891 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.01078, allocations: 0 / 341.1 MB, free: 8.891 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.708e-05/0.0108, allocations: 16 kB / 341.2 MB, free: 8.875 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.01081, allocations: 4 kB / 341.2 MB, free: 8.871 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.298e-06/0.01082, allocations: 3.938 kB / 341.2 MB, free: 8.867 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.01082, allocations: 7.938 kB / 341.2 MB, free: 8.859 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.165e-06/0.01082, allocations: 3.984 kB / 341.2 MB, free: 8.855 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002141/0.01104, allocations: 239.3 kB / 341.4 MB, free: 8.582 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.53e-05/0.01105, allocations: 11.94 kB / 341.4 MB, free: 8.57 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.101e-05/0.01107, allocations: 7.938 kB / 341.4 MB, free: 8.562 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.687e-05/0.01111, allocations: 4 kB / 341.4 MB, free: 8.559 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.923e-05/0.01114, allocations: 11.98 kB / 341.4 MB, free: 8.547 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.01115, allocations: 4 kB / 341.4 MB, free: 8.543 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.444e-05/0.01121, allocations: 143.2 kB / 341.6 MB, free: 8.402 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01121, allocations: 0 / 341.6 MB, free: 8.402 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002636/0.01147, allocations: 79.73 kB / 341.7 MB, free: 8.324 MB / 314.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.0008665/0.01234, allocations: 429.1 kB / 342.1 MB, free: 7.988 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002018/0.01254, allocations: 182.4 kB / 342.3 MB, free: 7.781 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.01254, allocations: 0 / 342.3 MB, free: 7.781 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.471e-05/0.01263, allocations: 136.6 kB / 342.4 MB, free: 7.625 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002078/0.01284, allocations: 31.67 kB / 342.4 MB, free: 7.598 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000676/0.01352, allocations: 244.2 kB / 342.7 MB, free: 7.32 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.682e-05/0.01356, allocations: 67.34 kB / 342.7 MB, free: 7.234 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 3.471e-05/0.0136, allocations: 7.984 kB / 342.7 MB, free: 7.227 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001168/0.01372, allocations: 98.19 kB / 342.8 MB, free: 7.129 MB / 314.7 MB Notification: Performance of SimCode: time 6.81e-07/0.01372, allocations: 0 / 342.8 MB, free: 7.129 MB / 314.7 MB Notification: Performance of Templates: time 0.00519/0.01891, allocations: 2.89 MB / 345.7 MB, free: 4.254 MB / 314.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.747669470962137]