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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo", uses=false) Using package ExternData with version 3.0.5 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.JSONTest") translateModel(ExternData.Examples.JSONTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.JSONTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001612/0.001612, allocations: 102.2 kB / 16.27 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001995/0.001995, allocations: 191 kB / 17.2 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.01358/0.01358, allocations: 2.943 MB / 294 MB, free: 11.87 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 63.84 kB / 355.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1937/0.1956, allocations: 50.34 MB / 405.7 MB, free: 32.63 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.002562/0.1982, allocations: 1.693 MB / 407.4 MB, free: 30.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00164/0.1999, allocations: 1.621 MB / 409 MB, free: 29.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.043e-05/0.2, allocations: 0 / 409 MB, free: 29.3 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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.0002987/0.2003, allocations: 39.78 kB / 409 MB, free: 29.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003029/0.2006, allocations: 119.4 kB / 409.1 MB, free: 29.15 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000196/0.2008, allocations: 92.39 kB / 409.2 MB, free: 29.06 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000104/0.2009, allocations: 91.7 kB / 409.3 MB, free: 28.97 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.074e-05/0.201, allocations: 12.23 kB / 409.3 MB, free: 28.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.737e-05/0.2011, allocations: 39.84 kB / 409.4 MB, free: 28.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001597/0.2012, allocations: 35.84 kB / 409.4 MB, free: 28.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.814e-05/0.2013, allocations: 11.94 kB / 409.4 MB, free: 28.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002158/0.2015, allocations: 199.8 kB / 409.6 MB, free: 28.67 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.748e-05/0.2015, allocations: 19.92 kB / 409.6 MB, free: 28.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.181e-05/0.2016, allocations: 43.8 kB / 409.7 MB, free: 28.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002442/0.2018, allocations: 223.4 kB / 409.9 MB, free: 28.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.2019, allocations: 0 / 409.9 MB, free: 28.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2019, allocations: 0 / 409.9 MB, free: 28.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.2019, allocations: 0 / 409.9 MB, free: 28.39 MB / 302.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.000459/0.2023, allocations: 460.8 kB / 410.3 MB, free: 27.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.822e-05/0.2024, allocations: 15.89 kB / 410.4 MB, free: 27.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.016e-05/0.2024, allocations: 8.844 kB / 410.4 MB, free: 27.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001622/0.2026, allocations: 204 kB / 410.6 MB, free: 27.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.2026, allocations: 4.375 kB / 410.6 MB, free: 27.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.752e-05/0.2026, allocations: 12.12 kB / 410.6 MB, free: 27.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001671/0.2028, allocations: 95.31 kB / 410.7 MB, free: 27.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.2028, allocations: 4 kB / 410.7 MB, free: 27.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.2028, allocations: 0 / 410.7 MB, free: 27.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.2028, allocations: 0 / 410.7 MB, free: 27.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001154/0.203, allocations: 51.97 kB / 410.7 MB, free: 27.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002957/0.2033, allocations: 305.6 kB / 411 MB, free: 27.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002017/0.2035, allocations: 97.22 kB / 411.1 MB, free: 26.99 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.367e-05/0.2036, allocations: 65.73 kB / 411.2 MB, free: 26.92 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.322e-05/0.2036, allocations: 3.984 kB / 411.2 MB, free: 26.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002067/0.2038, allocations: 134.7 kB / 411.3 MB, free: 26.76 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.402e-06/0.2038, allocations: 0 / 411.3 MB, free: 26.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.000372/0.2042, allocations: 231.3 kB / 411.6 MB, free: 26.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.848e-05/0.2042, allocations: 110.8 kB / 411.7 MB, free: 26.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.096e-05/0.2043, allocations: 145.8 kB / 411.8 MB, free: 26.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.03e-05/0.2043, allocations: 25.7 kB / 411.8 MB, free: 26.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.527e-05/0.2044, allocations: 92.05 kB / 411.9 MB, free: 26.11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.468e-05/0.2044, allocations: 27.64 kB / 411.9 MB, free: 26.08 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.788e-05/0.2044, allocations: 25.72 kB / 412 MB, free: 26.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.139e-05/0.2045, allocations: 326.8 kB / 412.3 MB, free: 25.72 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.879e-05/0.2046, allocations: 35.98 kB / 412.3 MB, free: 25.69 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.691e-05/0.2046, allocations: 53.69 kB / 412.4 MB, free: 25.63 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001347/0.2048, allocations: 148.9 kB / 412.5 MB, free: 25.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.2048, allocations: 0 / 412.5 MB, free: 25.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002203/0.205, allocations: 191.2 kB / 412.7 MB, free: 25.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/0.205, allocations: 37.64 kB / 412.7 MB, free: 25.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.2051, allocations: 0 / 412.7 MB, free: 25.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.2051, allocations: 4 kB / 412.8 MB, free: 25.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.755e-05/0.2051, allocations: 15.98 kB / 412.8 MB, free: 25.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.2051, allocations: 0 / 412.8 MB, free: 25.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.104e-05/0.2052, allocations: 7.938 kB / 412.8 MB, free: 25.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.2052, allocations: 11.94 kB / 412.8 MB, free: 25.18 MB / 302.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 7.457e-05/0.2053, allocations: 155.5 kB / 412.9 MB, free: 25.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.456e-05/0.2053, allocations: 15.81 kB / 413 MB, free: 25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.259e-05/0.2054, allocations: 12.36 kB / 413 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.2054, allocations: 8 kB / 413 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.2054, allocations: 0 / 413 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.2054, allocations: 0 / 413 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.776e-05/0.2055, allocations: 205.5 kB / 413.2 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.2055, allocations: 0 / 413.2 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.619e-05/0.2056, allocations: 8 kB / 413.2 MB, free: 24.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.2056, allocations: 0 / 413.2 MB, free: 24.72 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.2056, allocations: 7.984 kB / 413.2 MB, free: 24.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.2056, allocations: 0 / 413.2 MB, free: 24.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.2056, allocations: 0 / 413.2 MB, free: 24.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002651/0.2059, allocations: 259.4 kB / 413.4 MB, free: 24.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.437e-05/0.2059, allocations: 92.95 kB / 413.5 MB, free: 24.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.819e-05/0.2059, allocations: 7.984 kB / 413.5 MB, free: 24.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.588e-05/0.206, allocations: 4 kB / 413.5 MB, free: 24.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.157e-05/0.206, allocations: 8 kB / 413.6 MB, free: 24.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.2061, allocations: 11.92 kB / 413.6 MB, free: 24.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.755e-05/0.2061, allocations: 110.4 kB / 413.7 MB, free: 24.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2061, allocations: 0 / 413.7 MB, free: 24.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002684/0.2064, allocations: 79.98 kB / 413.8 MB, free: 24.11 MB / 302.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.0009417/0.2073, allocations: 384.7 kB / 414.1 MB, free: 23.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002455/0.2076, allocations: 199.2 kB / 414.3 MB, free: 23.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2076, allocations: 0 / 414.3 MB, free: 23.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001062/0.2077, allocations: 135.4 kB / 414.5 MB, free: 23.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002181/0.2079, allocations: 20 kB / 414.5 MB, free: 23.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003418/0.2083, allocations: 256.9 kB / 414.7 MB, free: 23.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001049/0.2084, allocations: 0.6963 MB / 415.4 MB, free: 22.44 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.913e-05/0.2084, allocations: 19.38 kB / 415.4 MB, free: 22.42 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.2084, allocations: 0 / 415.4 MB, free: 22.42 MB / 302.1 MB Notification: Performance of Templates: time 0.003613/0.2121, allocations: 2.583 MB / 418 MB, free: 19.84 MB / 302.1 MB make -j1 -f ExternData_ExternData.Examples.JSONTest.makefile (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)