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.00105/0.00105, allocations: 104.1 kB / 16.36 MB, free: 6.285 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.0009995/0.0009996, allocations: 191.6 kB / 17.29 MB, free: 5.863 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.306/1.306, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.01403/0.01403, allocations: 2.952 MB / 294.1 MB, free: 11.82 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 59.91 kB / 356.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2421, allocations: 50.33 MB / 406.4 MB, free: 32.48 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.002823/0.245, allocations: 1.704 MB / 408.1 MB, free: 30.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001726/0.2468, allocations: 1.625 MB / 409.8 MB, free: 29.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.271e-05/0.2468, allocations: 0 / 409.8 MB, free: 29.16 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.0003121/0.2472, allocations: 39.78 kB / 409.8 MB, free: 29.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002949/0.2475, allocations: 119.4 kB / 409.9 MB, free: 29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002059/0.2477, allocations: 93.16 kB / 410 MB, free: 28.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001208/0.2478, allocations: 91.69 kB / 410.1 MB, free: 28.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.113e-05/0.2479, allocations: 16.22 kB / 410.1 MB, free: 28.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.159e-05/0.248, allocations: 27.92 kB / 410.1 MB, free: 28.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001794/0.2482, allocations: 47.7 kB / 410.2 MB, free: 28.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.647e-05/0.2482, allocations: 8 kB / 410.2 MB, free: 28.72 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002499/0.2484, allocations: 199.8 kB / 410.4 MB, free: 28.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.377e-05/0.2485, allocations: 23.92 kB / 410.4 MB, free: 28.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.619e-05/0.2486, allocations: 43.78 kB / 410.5 MB, free: 28.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002916/0.2489, allocations: 219.5 kB / 410.7 MB, free: 28.24 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.2489, allocations: 4 kB / 410.7 MB, free: 28.24 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.2489, allocations: 0 / 410.7 MB, free: 28.24 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.2489, allocations: 0 / 410.7 MB, free: 28.24 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.0005192/0.2494, allocations: 454.7 kB / 411.1 MB, free: 27.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.2495, allocations: 11.89 kB / 411.1 MB, free: 27.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.375e-05/0.2495, allocations: 8.844 kB / 411.1 MB, free: 27.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000186/0.2497, allocations: 200.2 kB / 411.3 MB, free: 27.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.574e-06/0.2497, allocations: 384 / 411.3 MB, free: 27.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.773e-05/0.2497, allocations: 8.125 kB / 411.3 MB, free: 27.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001856/0.2499, allocations: 103.3 kB / 411.4 MB, free: 27.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.25, allocations: 0 / 411.4 MB, free: 27.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.25, allocations: 0 / 411.4 MB, free: 27.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.25, allocations: 4 kB / 411.4 MB, free: 27.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001163/0.2501, allocations: 55.95 kB / 411.5 MB, free: 27.31 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003266/0.2504, allocations: 313.6 kB / 411.8 MB, free: 26.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002013/0.2507, allocations: 93.28 kB / 411.9 MB, free: 26.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.26e-05/0.2507, allocations: 57.75 kB / 412 MB, free: 26.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.2508, allocations: 3.938 kB / 412 MB, free: 26.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001621/0.2509, allocations: 134.8 kB / 412.1 MB, free: 26.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.323e-06/0.2509, allocations: 4 kB / 412.1 MB, free: 26.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003866/0.2513, allocations: 227.2 kB / 412.3 MB, free: 26.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/0.2514, allocations: 106.8 kB / 412.4 MB, free: 26.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.7e-05/0.2515, allocations: 144.9 kB / 412.6 MB, free: 26.1 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.173e-05/0.2515, allocations: 29.64 kB / 412.6 MB, free: 26.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.757e-05/0.2515, allocations: 96.03 kB / 412.7 MB, free: 25.97 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.676e-05/0.2516, allocations: 27.8 kB / 412.7 MB, free: 25.94 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.246e-05/0.2516, allocations: 25.7 kB / 412.7 MB, free: 25.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.895e-05/0.2517, allocations: 326.8 kB / 413.1 MB, free: 25.58 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.117e-05/0.2517, allocations: 39.98 kB / 413.1 MB, free: 25.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.936e-05/0.2518, allocations: 61.56 kB / 413.2 MB, free: 25.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001403/0.252, allocations: 149 kB / 413.3 MB, free: 25.31 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.252, allocations: 0 / 413.3 MB, free: 25.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002519/0.2522, allocations: 183.2 kB / 413.5 MB, free: 25.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.768e-05/0.2523, allocations: 37.69 kB / 413.5 MB, free: 25.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.2523, allocations: 12 kB / 413.5 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.2523, allocations: 0 / 413.5 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.71e-05/0.2524, allocations: 11.98 kB / 413.5 MB, free: 25.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.2524, allocations: 0 / 413.5 MB, free: 25.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.371e-05/0.2524, allocations: 11.94 kB / 413.6 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.2525, allocations: 7.938 kB / 413.6 MB, free: 25.04 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 8.823e-05/0.2526, allocations: 159.5 kB / 413.7 MB, free: 24.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.382e-05/0.2526, allocations: 11.81 kB / 413.7 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.857e-05/0.2526, allocations: 20.36 kB / 413.7 MB, free: 24.83 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.2526, allocations: 0 / 413.7 MB, free: 24.83 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2526, allocations: 0 / 413.7 MB, free: 24.83 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2526, allocations: 4 kB / 413.8 MB, free: 24.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001071/0.2528, allocations: 197.5 kB / 413.9 MB, free: 24.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2528, allocations: 0 / 413.9 MB, free: 24.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.574e-05/0.2528, allocations: 8 kB / 414 MB, free: 24.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.2528, allocations: 4 kB / 414 MB, free: 24.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.473e-05/0.2528, allocations: 7.922 kB / 414 MB, free: 24.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.2529, allocations: 4 kB / 414 MB, free: 24.56 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2529, allocations: 0 / 414 MB, free: 24.56 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002869/0.2532, allocations: 251.7 kB / 414.2 MB, free: 24.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.785e-05/0.2532, allocations: 89.28 kB / 414.3 MB, free: 24.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.608e-05/0.2532, allocations: 8 kB / 414.3 MB, free: 24.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.684e-05/0.2533, allocations: 7.984 kB / 414.3 MB, free: 24.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.144e-05/0.2533, allocations: 3.984 kB / 414.3 MB, free: 24.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.726e-05/0.2534, allocations: 11.94 kB / 414.3 MB, free: 24.15 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.169e-05/0.2534, allocations: 115.2 kB / 414.4 MB, free: 24.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2534, allocations: 0 / 414.4 MB, free: 24.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002793/0.2537, allocations: 71.98 kB / 414.5 MB, free: 23.96 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.0007443/0.2544, allocations: 403.4 kB / 414.9 MB, free: 23.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002514/0.2547, allocations: 195.3 kB / 415.1 MB, free: 23.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2547, allocations: 0 / 415.1 MB, free: 23.47 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001131/0.2548, allocations: 139.3 kB / 415.2 MB, free: 23.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002138/0.2551, allocations: 19.75 kB / 415.3 MB, free: 23.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003758/0.2555, allocations: 243.2 kB / 415.5 MB, free: 23.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001279/0.2556, allocations: 0.704 MB / 416.2 MB, free: 22.31 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.225e-05/0.2556, allocations: 4 kB / 416.2 MB, free: 22.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.855e-05/0.2557, allocations: 19.44 kB / 416.2 MB, free: 22.29 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2557, allocations: 0 / 416.2 MB, free: 22.29 MB / 302.1 MB Notification: Performance of Templates: time 0.004734/0.2604, allocations: 2.535 MB / 418.8 MB, free: 19.76 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 gbode -lv LOG_STATS > ExternData_ExternData.Examples.JSONTest.pipe 2>&1)