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.4-master/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/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.001154/0.001154, allocations: 102.5 kB / 16.35 MB, free: 5.828 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.00115/0.00115, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.36/1.36, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.01293/0.01293, allocations: 2.949 MB / 294.1 MB, free: 11.8 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 63.91 kB / 356.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2141/0.2155, allocations: 50.33 MB / 406.4 MB, free: 32.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.002708/0.2182, allocations: 1.705 MB / 408.1 MB, free: 30.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001887/0.2201, allocations: 1.622 MB / 409.8 MB, free: 29.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.814e-05/0.2202, allocations: 0 / 409.8 MB, free: 29.14 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/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.000323/0.2205, allocations: 47.75 kB / 409.8 MB, free: 29.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002727/0.2208, allocations: 123.3 kB / 409.9 MB, free: 28.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002048/0.221, allocations: 83.78 kB / 410 MB, free: 28.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001123/0.2212, allocations: 95.69 kB / 410.1 MB, free: 28.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.695e-05/0.2213, allocations: 12.17 kB / 410.1 MB, free: 28.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.79e-05/0.2213, allocations: 31.92 kB / 410.1 MB, free: 28.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001501/0.2215, allocations: 51.7 kB / 410.2 MB, free: 28.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.548e-05/0.2215, allocations: 8 kB / 410.2 MB, free: 28.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002107/0.2217, allocations: 203.8 kB / 410.4 MB, free: 28.49 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.703e-05/0.2218, allocations: 23.92 kB / 410.4 MB, free: 28.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.595e-05/0.2218, allocations: 31.8 kB / 410.5 MB, free: 28.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002606/0.2221, allocations: 227.5 kB / 410.7 MB, free: 28.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2221, allocations: 0 / 410.7 MB, free: 28.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2221, allocations: 0 / 410.7 MB, free: 28.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.2221, allocations: 0 / 410.7 MB, free: 28.21 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.000427/0.2226, allocations: 462.7 kB / 411.1 MB, free: 27.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.241e-05/0.2226, allocations: 8.031 kB / 411.1 MB, free: 27.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.559e-05/0.2226, allocations: 8.844 kB / 411.1 MB, free: 27.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001633/0.2228, allocations: 192.2 kB / 411.3 MB, free: 27.47 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.948e-06/0.2228, allocations: 4.375 kB / 411.3 MB, free: 27.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.312e-05/0.2228, allocations: 12.12 kB / 411.4 MB, free: 27.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001606/0.223, allocations: 99.23 kB / 411.4 MB, free: 27.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.223, allocations: 4 kB / 411.5 MB, free: 27.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.223, allocations: 4 kB / 411.5 MB, free: 27.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.2231, allocations: 0 / 411.5 MB, free: 27.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001134/0.2232, allocations: 59.94 kB / 411.5 MB, free: 27.28 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003057/0.2235, allocations: 305.6 kB / 411.8 MB, free: 26.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001994/0.2237, allocations: 97.28 kB / 411.9 MB, free: 26.81 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.149e-05/0.2238, allocations: 61.69 kB / 412 MB, free: 26.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.209e-05/0.2238, allocations: 0 / 412 MB, free: 26.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001544/0.224, allocations: 138.8 kB / 412.1 MB, free: 26.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.162e-06/0.224, allocations: 0 / 412.1 MB, free: 26.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003663/0.2243, allocations: 223.2 kB / 412.3 MB, free: 26.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.413e-05/0.2244, allocations: 110.8 kB / 412.4 MB, free: 26.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.31e-05/0.2245, allocations: 137.8 kB / 412.6 MB, free: 26.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.143e-05/0.2245, allocations: 29.7 kB / 412.6 MB, free: 26.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.432e-05/0.2246, allocations: 92.03 kB / 412.7 MB, free: 25.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.722e-05/0.2246, allocations: 31.8 kB / 412.7 MB, free: 25.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.16e-05/0.2246, allocations: 33.7 kB / 412.7 MB, free: 25.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.833e-05/0.2247, allocations: 322.8 kB / 413.1 MB, free: 25.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.17e-05/0.2248, allocations: 35.98 kB / 413.1 MB, free: 25.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.632e-05/0.2248, allocations: 53.64 kB / 413.2 MB, free: 25.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001375/0.225, allocations: 152.9 kB / 413.3 MB, free: 25.29 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.225, allocations: 4 kB / 413.3 MB, free: 25.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002251/0.2252, allocations: 187.2 kB / 413.5 MB, free: 25.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.016e-05/0.2253, allocations: 37.69 kB / 413.5 MB, free: 25.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.2253, allocations: 0 / 413.5 MB, free: 25.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.2253, allocations: 0 / 413.5 MB, free: 25.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.499e-05/0.2253, allocations: 8 kB / 413.5 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.2254, allocations: 7.938 kB / 413.5 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.076e-05/0.2254, allocations: 15.92 kB / 413.6 MB, free: 25.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/0.2254, allocations: 11.94 kB / 413.6 MB, free: 25.01 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.431e-05/0.2255, allocations: 155.5 kB / 413.7 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.3e-05/0.2256, allocations: 15.81 kB / 413.7 MB, free: 24.82 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.192e-05/0.2256, allocations: 8.375 kB / 413.7 MB, free: 24.81 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.2256, allocations: 0 / 413.7 MB, free: 24.81 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.2256, allocations: 4 kB / 413.7 MB, free: 24.81 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2256, allocations: 3.984 kB / 413.7 MB, free: 24.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000101/0.2257, allocations: 197.5 kB / 413.9 MB, free: 24.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.2257, allocations: 4 kB / 413.9 MB, free: 24.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.518e-05/0.2258, allocations: 8 kB / 414 MB, free: 24.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.2258, allocations: 4 kB / 414 MB, free: 24.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.2258, allocations: 4 kB / 414 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.2258, allocations: 0 / 414 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2258, allocations: 0 / 414 MB, free: 24.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002756/0.2261, allocations: 255.3 kB / 414.2 MB, free: 24.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.988e-05/0.2261, allocations: 93.28 kB / 414.3 MB, free: 24.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.576e-05/0.2262, allocations: 4 kB / 414.3 MB, free: 24.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.419e-05/0.2262, allocations: 8 kB / 414.3 MB, free: 24.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.604e-05/0.2263, allocations: 11.98 kB / 414.3 MB, free: 24.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.2263, allocations: 11.92 kB / 414.3 MB, free: 24.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.053e-05/0.2263, allocations: 110.9 kB / 414.4 MB, free: 24.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2263, allocations: 0 / 414.4 MB, free: 24.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002788/0.2266, allocations: 79.92 kB / 414.5 MB, free: 23.94 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.0007183/0.2274, allocations: 392.5 kB / 414.9 MB, free: 23.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002514/0.2276, allocations: 195.3 kB / 415.1 MB, free: 23.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2276, allocations: 0 / 415.1 MB, free: 23.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.2277, allocations: 139.3 kB / 415.2 MB, free: 23.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002147/0.228, allocations: 15.98 kB / 415.2 MB, free: 23.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003866/0.2284, allocations: 243.2 kB / 415.5 MB, free: 23.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001271/0.2285, allocations: 0.6963 MB / 416.2 MB, free: 22.3 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.144e-05/0.2285, allocations: 7.984 kB / 416.2 MB, free: 22.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.657e-05/0.2286, allocations: 15.44 kB / 416.2 MB, free: 22.27 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2286, allocations: 0 / 416.2 MB, free: 22.27 MB / 302.1 MB Notification: Performance of Templates: time 0.004541/0.2331, allocations: 2.54 MB / 418.7 MB, free: 19.75 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 -s cvode -lv LOG_STATS > ExternData_ExternData.Examples.JSONTest.pipe 2>&1)