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.00126/0.00126, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.0009573/0.0009573, allocations: 177 kB / 23.36 MB, free: 1.133 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.9613/0.9613, allocations: 177.2 MB / 203.8 MB, free: 5.492 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.0103/0.0103, allocations: 2.266 MB / 262.5 MB, free: 10.69 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.613e-06/1.613e-06, allocations: 0 / 280 MB, free: 9.18 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.48e-05/2.641e-05, allocations: 5.547 kB / 280 MB, free: 9.176 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.002444/0.002471, allocations: 1.788 MB / 281.8 MB, free: 7.371 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00203/0.0045, allocations: 1.784 MB / 283.6 MB, free: 5.578 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.06e-05/0.004561, allocations: 0 / 283.6 MB, free: 5.578 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.0003226/0.004884, allocations: 47.66 kB / 283.7 MB, free: 5.531 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003159/0.0052, allocations: 123.4 kB / 283.8 MB, free: 5.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001769/0.005377, allocations: 79.72 kB / 283.9 MB, free: 5.332 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001149/0.005491, allocations: 87.75 kB / 283.9 MB, free: 5.246 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.523e-05/0.005567, allocations: 8.234 kB / 284 MB, free: 5.234 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.423e-05/0.005651, allocations: 51.83 kB / 284 MB, free: 5.184 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001105/0.005761, allocations: 31.91 kB / 284 MB, free: 5.152 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.452e-05/0.005776, allocations: 4 kB / 284 MB, free: 5.148 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002659/0.006042, allocations: 207.6 kB / 284.2 MB, free: 4.945 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.619e-05/0.006088, allocations: 19.92 kB / 284.3 MB, free: 4.926 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.517e-05/0.006123, allocations: 23.92 kB / 284.3 MB, free: 4.902 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002725/0.006396, allocations: 239.3 kB / 284.5 MB, free: 4.668 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.006399, allocations: 4 kB / 284.5 MB, free: 4.664 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.0064, allocations: 0 / 284.5 MB, free: 4.664 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.006403, allocations: 4 kB / 284.5 MB, free: 4.66 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.0003792/0.006783, allocations: 357.8 kB / 284.9 MB, free: 4.281 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.031e-05/0.006813, allocations: 8.031 kB / 284.9 MB, free: 4.273 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.408e-05/0.006847, allocations: 12.94 kB / 284.9 MB, free: 4.262 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/0.006998, allocations: 137.6 kB / 285 MB, free: 4.102 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.318e-06/0.007007, allocations: 4.375 kB / 285 MB, free: 4.098 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.985e-06/0.007015, allocations: 384 / 285 MB, free: 4.098 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001391/0.007154, allocations: 129.2 kB / 285.2 MB, free: 3.949 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.007161, allocations: 3.938 kB / 285.2 MB, free: 3.945 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.043e-06/0.007169, allocations: 0 / 285.2 MB, free: 3.945 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.007174, allocations: 0 / 285.2 MB, free: 3.945 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.386e-05/0.007217, allocations: 52.45 kB / 285.2 MB, free: 3.887 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002122/0.00743, allocations: 180.1 kB / 285.4 MB, free: 3.691 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001319/0.007562, allocations: 86.78 kB / 285.5 MB, free: 3.582 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.642e-05/0.007598, allocations: 55.55 kB / 285.5 MB, free: 3.516 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.117e-05/0.007609, allocations: 4 kB / 285.5 MB, free: 3.512 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001178/0.007727, allocations: 151.3 kB / 285.7 MB, free: 3.332 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 1.102e-06/0.007728, allocations: 7.938 kB / 285.7 MB, free: 3.324 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.0001702/0.007898, allocations: 177.6 kB / 285.9 MB, free: 3.125 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.641e-05/0.007935, allocations: 114.7 kB / 286 MB, free: 2.988 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003278/0.008262, allocations: 138.6 kB / 286.1 MB, free: 2.84 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.077e-05/0.008273, allocations: 25.7 kB / 286.1 MB, free: 2.809 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.68e-05/0.0083, allocations: 96.06 kB / 286.2 MB, free: 2.711 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.622e-05/0.008326, allocations: 27.8 kB / 286.3 MB, free: 2.684 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.244e-05/0.008359, allocations: 21.7 kB / 286.3 MB, free: 2.656 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.754e-05/0.008426, allocations: 322.8 kB / 286.6 MB, free: 2.332 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.025e-05/0.008456, allocations: 48.53 kB / 286.6 MB, free: 2.277 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.282e-05/0.008489, allocations: 55.39 kB / 286.7 MB, free: 2.211 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.268e-05/0.008562, allocations: 123.9 kB / 286.8 MB, free: 2.07 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.008564, allocations: 0 / 286.8 MB, free: 2.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001038/0.008667, allocations: 147.8 kB / 287 MB, free: 1.906 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.081e-05/0.008698, allocations: 37.69 kB / 287 MB, free: 1.863 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.008702, allocations: 0 / 287 MB, free: 1.863 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.008713, allocations: 0 / 287 MB, free: 1.863 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.081e-05/0.008764, allocations: 12 kB / 287 MB, free: 1.852 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.717e-06/0.008768, allocations: 4 kB / 287 MB, free: 1.848 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.638e-05/0.008804, allocations: 15.92 kB / 287 MB, free: 1.832 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.713e-06/0.008811, allocations: 0 / 287 MB, free: 1.832 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.331e-05/0.008884, allocations: 154.4 kB / 287.2 MB, free: 1.664 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.592e-05/0.0089, allocations: 11.94 kB / 287.2 MB, free: 1.652 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.184e-05/0.008922, allocations: 12.42 kB / 287.2 MB, free: 1.641 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.093e-06/0.008924, allocations: 4 kB / 287.2 MB, free: 1.637 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.008926, allocations: 0 / 287.2 MB, free: 1.637 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.008929, allocations: 0 / 287.2 MB, free: 1.637 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.614e-05/0.009005, allocations: 81.88 kB / 287.3 MB, free: 1.539 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.009006, allocations: 3.938 kB / 287.3 MB, free: 1.535 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.77e-05/0.009033, allocations: 15.98 kB / 287.3 MB, free: 1.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.009036, allocations: 4 kB / 287.3 MB, free: 1.516 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.009046, allocations: 15.88 kB / 287.3 MB, free: 1.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.009047, allocations: 0 / 287.3 MB, free: 1.5 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.009048, allocations: 4 kB / 287.3 MB, free: 1.496 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001351/0.009183, allocations: 179 kB / 287.5 MB, free: 1.285 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.886e-05/0.009202, allocations: 19.88 kB / 287.5 MB, free: 1.266 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.843e-05/0.009221, allocations: 7.938 kB / 287.5 MB, free: 1.258 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.955e-05/0.00925, allocations: 4 kB / 287.5 MB, free: 1.254 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.71e-05/0.009277, allocations: 7.922 kB / 287.5 MB, free: 1.246 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.00929, allocations: 8 kB / 287.5 MB, free: 1.238 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.321e-05/0.009313, allocations: 28.08 kB / 287.6 MB, free: 1.211 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009313, allocations: 0 / 287.6 MB, free: 1.211 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001956/0.009509, allocations: 75.75 kB / 287.6 MB, free: 1.137 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.0009213/0.01043, allocations: 491.7 kB / 288.1 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001704/0.0106, allocations: 183.5 kB / 288.3 MB, free: 0.582 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.0106, allocations: 0 / 288.3 MB, free: 0.582 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.884e-05/0.01066, allocations: 121.9 kB / 288.4 MB, free: 452 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001385/0.0108, allocations: 15.98 kB / 288.4 MB, free: 436 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003181/0.01112, allocations: 252.7 kB / 288.7 MB, free: 144 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.354e-05/0.01115, allocations: 63.34 kB / 288.8 MB, free: 60 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.287e-05/0.01119, allocations: 12.36 kB / 288.8 MB, free: 48 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.09053/0.1017, allocations: 75.64 kB / 288.8 MB, free: 23.2 MB / 266.7 MB Notification: Performance of SimCode: time 1.743e-06/0.1017, allocations: 0 / 288.8 MB, free: 23.2 MB / 266.7 MB Notification: Performance of Templates: time 0.00572/0.1074, allocations: 2.867 MB / 291.7 MB, free: 23.02 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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > ExternData_ExternData.Examples.JSONTest.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.5697095012292266]