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.001431/0.001431, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.001942/0.001942, allocations: 173 kB / 23.49 MB, free: 1.059 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.9771/0.9771, allocations: 177.1 MB / 203.8 MB, free: 5.645 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.01196/0.01196, allocations: 2.255 MB / 262.5 MB, free: 10.86 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 2.425e-06/2.425e-06, allocations: 0 / 332.8 MB, free: 16.77 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.673e-05/2.916e-05, allocations: 2.312 kB / 332.8 MB, free: 16.77 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.003129/0.003158, allocations: 1.744 MB / 334.5 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001431/0.004589, allocations: 1.765 MB / 336.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.162e-05/0.00465, allocations: 0 / 336.3 MB, free: 13.23 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.0003285/0.004979, allocations: 43.72 kB / 336.4 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002532/0.005232, allocations: 123.4 kB / 336.5 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001424/0.005375, allocations: 91.69 kB / 336.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.981e-05/0.005474, allocations: 91.64 kB / 336.7 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.541e-05/0.00555, allocations: 12.22 kB / 336.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.24e-05/0.005622, allocations: 51.89 kB / 336.7 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.965e-05/0.005722, allocations: 27.91 kB / 336.7 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.497e-05/0.005737, allocations: 4 kB / 336.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001766/0.005913, allocations: 187.6 kB / 336.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.188e-05/0.005965, allocations: 27.91 kB / 337 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.015e-05/0.006005, allocations: 23.92 kB / 337 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002362/0.006242, allocations: 235.3 kB / 337.2 MB, free: 12.33 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.255e-06/0.006244, allocations: 0 / 337.2 MB, free: 12.33 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.006246, allocations: 0 / 337.2 MB, free: 12.33 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.867e-06/0.006249, allocations: 0 / 337.2 MB, free: 12.33 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.0003866/0.006636, allocations: 493.1 kB / 337.7 MB, free: 11.8 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.014e-05/0.006666, allocations: 8.031 kB / 337.7 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.614e-05/0.006712, allocations: 16.89 kB / 337.7 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.006847, allocations: 136.5 kB / 337.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.006859, allocations: 8.375 kB / 337.9 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.00687, allocations: 8.375 kB / 337.9 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001329/0.007003, allocations: 127.9 kB / 338 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.007011, allocations: 3.938 kB / 338 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.007021, allocations: 4 kB / 338 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.007028, allocations: 0 / 338 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.947e-05/0.007078, allocations: 49.69 kB / 338 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002334/0.007311, allocations: 291.5 kB / 338.3 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000139/0.00745, allocations: 123.9 kB / 338.5 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.255e-05/0.007493, allocations: 61.08 kB / 338.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.235e-05/0.007505, allocations: 4 kB / 338.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001131/0.007618, allocations: 163.7 kB / 338.7 MB, free: 10.64 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 8.72e-07/0.007619, allocations: 0 / 338.7 MB, free: 10.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002529/0.007872, allocations: 226.8 kB / 338.9 MB, free: 10.4 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.533e-05/0.007897, allocations: 110.8 kB / 339 MB, free: 10.27 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.83e-05/0.007966, allocations: 188.9 kB / 339.2 MB, free: 10.07 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.734e-06/0.007973, allocations: 29.69 kB / 339.2 MB, free: 10.03 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.743e-05/0.008001, allocations: 142.8 kB / 339.4 MB, free: 9.887 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.223e-05/0.008023, allocations: 27.75 kB / 339.4 MB, free: 9.859 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.983e-05/0.008053, allocations: 35.36 kB / 339.4 MB, free: 9.816 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.95e-05/0.008092, allocations: 0.4923 MB / 339.9 MB, free: 9.312 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.276e-05/0.008125, allocations: 49.69 kB / 340 MB, free: 9.258 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.306e-05/0.008158, allocations: 65.06 kB / 340 MB, free: 9.18 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.562e-05/0.008224, allocations: 122.6 kB / 340.1 MB, free: 9.039 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.008226, allocations: 7.938 kB / 340.2 MB, free: 9.031 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001175/0.008344, allocations: 173 kB / 340.3 MB, free: 8.844 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.008366, allocations: 48.91 kB / 340.4 MB, free: 8.793 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.00837, allocations: 0 / 340.4 MB, free: 8.793 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.008382, allocations: 0 / 340.4 MB, free: 8.793 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.169e-05/0.008424, allocations: 16 kB / 340.4 MB, free: 8.777 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.008428, allocations: 0 / 340.4 MB, free: 8.777 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.463e-05/0.008463, allocations: 11.92 kB / 340.4 MB, free: 8.766 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.008471, allocations: 4.328 kB / 340.4 MB, free: 8.762 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 5.605e-05/0.008527, allocations: 206.1 kB / 340.6 MB, free: 8.543 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.891e-05/0.008546, allocations: 23.94 kB / 340.6 MB, free: 8.52 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.869e-05/0.008564, allocations: 8.438 kB / 340.6 MB, free: 8.508 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.008567, allocations: 4 kB / 340.6 MB, free: 8.504 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.008569, allocations: 0 / 340.6 MB, free: 8.504 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.008573, allocations: 0 / 340.6 MB, free: 8.504 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.63e-05/0.008639, allocations: 156.5 kB / 340.8 MB, free: 8.316 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.00864, allocations: 3.938 kB / 340.8 MB, free: 8.312 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.064e-05/0.008661, allocations: 8 kB / 340.8 MB, free: 8.305 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.41e-07/0.008661, allocations: 0 / 340.8 MB, free: 8.305 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.427e-06/0.008671, allocations: 4 kB / 340.8 MB, free: 8.301 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.31e-07/0.008671, allocations: 0 / 340.8 MB, free: 8.301 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.008673, allocations: 4 kB / 340.8 MB, free: 8.297 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001597/0.008833, allocations: 251.3 kB / 341.1 MB, free: 8.012 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.233e-05/0.008845, allocations: 15.88 kB / 341.1 MB, free: 7.996 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.045e-05/0.008866, allocations: 4 kB / 341.1 MB, free: 7.992 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.62e-05/0.008892, allocations: 8 kB / 341.1 MB, free: 7.984 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.847e-05/0.00892, allocations: 7.984 kB / 341.1 MB, free: 7.977 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.165e-05/0.008932, allocations: 4 kB / 341.1 MB, free: 7.973 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.229e-05/0.008964, allocations: 143.2 kB / 341.2 MB, free: 7.832 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008964, allocations: 0 / 341.2 MB, free: 7.832 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001879/0.009152, allocations: 79.73 kB / 341.3 MB, free: 7.754 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.0007597/0.009912, allocations: 433 kB / 341.7 MB, free: 7.422 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001525/0.01006, allocations: 194.4 kB / 341.9 MB, free: 7.203 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.01007, allocations: 0 / 341.9 MB, free: 7.203 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.991e-05/0.01012, allocations: 132.7 kB / 342.1 MB, free: 7.051 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001612/0.01028, allocations: 30.95 kB / 342.1 MB, free: 7.023 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002945/0.01057, allocations: 253.7 kB / 342.3 MB, free: 6.738 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.262e-05/0.01059, allocations: 69.78 kB / 342.4 MB, free: 6.652 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.434e-05/0.01062, allocations: 7.984 kB / 342.4 MB, free: 6.645 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.247e-05/0.01064, allocations: 16.5 kB / 342.4 MB, free: 6.629 MB / 266.7 MB Notification: Performance of SimCode: time 4.41e-07/0.01064, allocations: 0 / 342.4 MB, free: 6.629 MB / 266.7 MB Notification: Performance of Templates: time 0.00361/0.01425, allocations: 2.614 MB / 345 MB, free: 4.031 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.817157302983105]