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.001861/0.001861, allocations: 81.5 kB / 19.44 MB, free: 344 kB / 13.93 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.001992/0.001992, allocations: 173.2 kB / 22.76 MB, free: 1.664 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 1.47/1.47, allocations: 177.1 MB / 203.1 MB, free: 5.566 MB / 186.7 MB " [Timeout remaining time 178] 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.01579/0.01579, allocations: 2.269 MB / 261.8 MB, free: 10.78 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.593e-06/1.593e-06, allocations: 0 / 332.1 MB, free: 16.77 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.506e-05/2.665e-05, allocations: 4.703 kB / 332.1 MB, free: 16.77 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.002193/0.00222, allocations: 1.713 MB / 333.8 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001689/0.003909, allocations: 1.738 MB / 335.5 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.642e-05/0.003965, allocations: 8 kB / 335.5 MB, free: 13.28 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.0003155/0.004281, allocations: 43.72 kB / 335.6 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003085/0.004589, allocations: 123.3 kB / 335.7 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001852/0.004774, allocations: 91.7 kB / 335.8 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001026/0.004877, allocations: 83.7 kB / 335.9 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.484e-05/0.004952, allocations: 8.234 kB / 335.9 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.621e-05/0.005038, allocations: 47.89 kB / 335.9 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001489/0.005187, allocations: 27.91 kB / 335.9 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.108e-05/0.005208, allocations: 12 kB / 336 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002158/0.005424, allocations: 191.6 kB / 336.1 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.461e-05/0.005478, allocations: 19.92 kB / 336.2 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.062e-05/0.005519, allocations: 19.98 kB / 336.2 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002816/0.005801, allocations: 259.2 kB / 336.4 MB, free: 12.37 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.005803, allocations: 4 kB / 336.4 MB, free: 12.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.32e-07/0.005803, allocations: 0 / 336.4 MB, free: 12.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.005808, allocations: 0 / 336.4 MB, free: 12.36 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.0004613/0.006269, allocations: 489.1 kB / 336.9 MB, free: 11.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.996e-05/0.006299, allocations: 8.031 kB / 336.9 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.386e-05/0.006353, allocations: 20.89 kB / 336.9 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/0.006512, allocations: 144.4 kB / 337.1 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.006526, allocations: 4.375 kB / 337.1 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.268e-05/0.006538, allocations: 8.375 kB / 337.1 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001722/0.00671, allocations: 115.3 kB / 337.2 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.006721, allocations: 7.938 kB / 337.2 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/0.006731, allocations: 0 / 337.2 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.006736, allocations: 0 / 337.2 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00011/0.006846, allocations: 73.61 kB / 337.3 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002803/0.007126, allocations: 303.4 kB / 337.6 MB, free: 11.08 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001959/0.007322, allocations: 135.8 kB / 337.7 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.33e-05/0.007395, allocations: 73.11 kB / 337.8 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.007412, allocations: 0 / 337.8 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001597/0.007572, allocations: 179.7 kB / 338 MB, free: 10.62 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 9.22e-07/0.007573, allocations: 0 / 338 MB, free: 10.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003537/0.007926, allocations: 255.1 kB / 338.2 MB, free: 10.35 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.8e-05/0.007954, allocations: 114.7 kB / 338.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.542e-05/0.00804, allocations: 203.5 kB / 338.5 MB, free: 9.996 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.749e-06/0.00805, allocations: 25.7 kB / 338.6 MB, free: 9.965 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.475e-05/0.008084, allocations: 142.8 kB / 338.7 MB, free: 9.82 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.008109, allocations: 31.78 kB / 338.7 MB, free: 9.789 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.085e-05/0.008149, allocations: 31.38 kB / 338.8 MB, free: 9.75 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.7e-05/0.008206, allocations: 0.4923 MB / 339.2 MB, free: 9.246 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.54e-05/0.008272, allocations: 57.69 kB / 339.3 MB, free: 9.184 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.225e-05/0.008334, allocations: 77.05 kB / 339.4 MB, free: 9.094 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001274/0.008462, allocations: 150.6 kB / 339.5 MB, free: 8.926 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.008464, allocations: 3.938 kB / 339.5 MB, free: 8.922 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002103/0.008674, allocations: 208.9 kB / 339.7 MB, free: 8.699 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.008699, allocations: 36.67 kB / 339.8 MB, free: 8.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.008703, allocations: 0 / 339.8 MB, free: 8.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.008717, allocations: 7.984 kB / 339.8 MB, free: 8.652 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.136e-05/0.008768, allocations: 8 kB / 339.8 MB, free: 8.645 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.008773, allocations: 0 / 339.8 MB, free: 8.645 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.428e-05/0.008827, allocations: 11.94 kB / 339.8 MB, free: 8.633 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.959e-06/0.008837, allocations: 4 kB / 339.8 MB, free: 8.629 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 7.199e-05/0.008909, allocations: 206.1 kB / 340 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.797e-05/0.008937, allocations: 19.95 kB / 340 MB, free: 8.391 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.314e-05/0.00896, allocations: 20.36 kB / 340 MB, free: 8.367 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-06/0.008962, allocations: 0 / 340 MB, free: 8.367 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.008965, allocations: 0 / 340 MB, free: 8.367 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.008968, allocations: 4 kB / 340 MB, free: 8.363 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.396e-05/0.009052, allocations: 148.5 kB / 340.2 MB, free: 8.184 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.009054, allocations: 3.938 kB / 340.2 MB, free: 8.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.37e-05/0.009097, allocations: 11.98 kB / 340.2 MB, free: 8.168 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.0091, allocations: 4 kB / 340.2 MB, free: 8.164 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.009111, allocations: 0 / 340.2 MB, free: 8.164 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.009113, allocations: 4 kB / 340.2 MB, free: 8.16 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.009114, allocations: 4 kB / 340.2 MB, free: 8.156 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002698/0.009384, allocations: 271.4 kB / 340.5 MB, free: 7.852 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.705e-05/0.009401, allocations: 15.88 kB / 340.5 MB, free: 7.836 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.464e-05/0.009425, allocations: 4 kB / 340.5 MB, free: 7.832 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.105e-05/0.009477, allocations: 8 kB / 340.5 MB, free: 7.824 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.529e-05/0.009512, allocations: 11.92 kB / 340.5 MB, free: 7.812 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/0.009527, allocations: 4 kB / 340.5 MB, free: 7.809 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.9e-05/0.009576, allocations: 150.1 kB / 340.7 MB, free: 7.664 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009576, allocations: 0 / 340.7 MB, free: 7.664 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002599/0.009836, allocations: 79.73 kB / 340.7 MB, free: 7.586 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.00151/0.01135, allocations: 408.3 kB / 341.1 MB, free: 7.273 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002411/0.01159, allocations: 230.3 kB / 341.4 MB, free: 7.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.01159, allocations: 0 / 341.4 MB, free: 7.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.877e-05/0.01169, allocations: 144.8 kB / 341.5 MB, free: 6.855 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002126/0.0119, allocations: 34.64 kB / 341.5 MB, free: 6.828 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004014/0.0123, allocations: 273.3 kB / 341.8 MB, free: 6.523 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.393e-05/0.01235, allocations: 81.12 kB / 341.9 MB, free: 6.422 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.119e-05/0.01238, allocations: 11.98 kB / 341.9 MB, free: 6.41 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.921e-05/0.01241, allocations: 12.5 kB / 341.9 MB, free: 6.398 MB / 266.7 MB Notification: Performance of SimCode: time 7.12e-07/0.01241, allocations: 4 kB / 341.9 MB, free: 6.395 MB / 266.7 MB Notification: Performance of Templates: time 0.00508/0.01749, allocations: 2.608 MB / 344.5 MB, free: 3.805 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: 4.216153796995059]