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.0009387/0.0009387, allocations: 98.56 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009773/0.0009773, allocations: 185.8 kB / 16.92 MB, free: 6.75 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.312/1.312, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1213/0.1213, allocations: 2.945 MB / 295 MB, free: 3.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002859/0.0002859, allocations: 8 kB / 357.1 MB, free: 3.367 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08016/0.08046, allocations: 51.36 MB / 408.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.JSONTest): time 0.00183/0.0823, allocations: 1.416 MB / 409.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002073/0.08439, allocations: 1.589 MB / 411.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.671e-05/0.08446, allocations: 0 / 411.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002443/0.08471, allocations: 39.84 kB / 411.5 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003181/0.08504, allocations: 99.66 kB / 411.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002109/0.08527, allocations: 67.86 kB / 411.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001054/0.08538, allocations: 75.77 kB / 411.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.292e-05/0.08546, allocations: 12.22 kB / 411.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.001e-05/0.08554, allocations: 35.8 kB / 411.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001356/0.08568, allocations: 35.83 kB / 411.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.554e-05/0.0857, allocations: 8 kB / 411.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003137/0.08602, allocations: 191.8 kB / 412 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.79e-05/0.08608, allocations: 19.92 kB / 412.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.143e-05/0.08615, allocations: 65.42 kB / 412.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002358/0.08639, allocations: 151.7 kB / 412.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.335e-06/0.0864, allocations: 0 / 412.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.31e-07/0.08641, allocations: 0 / 412.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.116e-06/0.08642, allocations: 0 / 412.3 MB, free: 12.14 MB / 350.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.0004783/0.0869, allocations: 452.8 kB / 412.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.972e-05/0.08694, allocations: 8.031 kB / 412.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.223e-05/0.08701, allocations: 8.844 kB / 412.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001788/0.0872, allocations: 199.9 kB / 412.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.08722, allocations: 8.359 kB / 412.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.666e-05/0.08724, allocations: 4.125 kB / 412.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002052/0.08745, allocations: 103.2 kB / 413 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.262e-06/0.08747, allocations: 8 kB / 413 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.074e-05/0.08749, allocations: 0 / 413 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.0875, allocations: 0 / 413 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001377/0.08764, allocations: 55.97 kB / 413.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003924/0.08804, allocations: 309.5 kB / 413.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002313/0.08828, allocations: 101.3 kB / 413.5 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001058/0.0884, allocations: 61.73 kB / 413.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.011e-05/0.08842, allocations: 0 / 413.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002089/0.08863, allocations: 138.7 kB / 413.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.242e-06/0.08864, allocations: 0 / 413.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004793/0.08913, allocations: 235.3 kB / 413.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.0892, allocations: 114.8 kB / 414 MB, free: 10.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/0.08931, allocations: 141 kB / 414.2 MB, free: 9.988 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.838e-05/0.08934, allocations: 33.7 kB / 414.2 MB, free: 9.949 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.472e-05/0.08939, allocations: 84.14 kB / 414.3 MB, free: 9.863 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.21e-05/0.08943, allocations: 35.55 kB / 414.3 MB, free: 9.828 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.037e-05/0.08946, allocations: 17.72 kB / 414.3 MB, free: 9.805 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.401e-05/0.08956, allocations: 322.8 kB / 414.7 MB, free: 9.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.537e-05/0.08965, allocations: 39.92 kB / 414.7 MB, free: 9.441 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.379e-05/0.08976, allocations: 61.69 kB / 414.8 MB, free: 9.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001851/0.08995, allocations: 149 kB / 414.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.08996, allocations: 0 / 414.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000327/0.09029, allocations: 199.1 kB / 415.1 MB, free: 9.004 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.35e-05/0.09034, allocations: 33.7 kB / 415.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-06/0.09036, allocations: 0 / 415.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.057e-06/0.09037, allocations: 4 kB / 415.1 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.266e-05/0.09044, allocations: 11.98 kB / 415.1 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.09045, allocations: 4 kB / 415.2 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.657e-05/0.09052, allocations: 8 kB / 415.2 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.09054, allocations: 7.938 kB / 415.2 MB, free: 8.93 MB / 350.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 0.0001027/0.09065, allocations: 159.5 kB / 415.3 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.477e-05/0.09068, allocations: 11.91 kB / 415.3 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.984e-05/0.09072, allocations: 12.36 kB / 415.3 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.09073, allocations: 4.328 kB / 415.4 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.09074, allocations: 4 kB / 415.4 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.09074, allocations: 0 / 415.4 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001564/0.0909, allocations: 213.4 kB / 415.6 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.09091, allocations: 0 / 415.6 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.445e-05/0.09097, allocations: 11.98 kB / 415.6 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.09098, allocations: 0 / 415.6 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.091, allocations: 15.98 kB / 415.6 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.09101, allocations: 3.938 kB / 415.6 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.09102, allocations: 0 / 415.6 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003807/0.0914, allocations: 251.4 kB / 415.8 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.18e-05/0.09145, allocations: 85 kB / 415.9 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.648e-05/0.09149, allocations: 11.94 kB / 415.9 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.635e-05/0.09156, allocations: 12 kB / 415.9 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.07e-05/0.09161, allocations: 3.984 kB / 416 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.488e-05/0.09163, allocations: 7.938 kB / 416 MB, free: 8.027 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.551e-05/0.09171, allocations: 107.3 kB / 416.1 MB, free: 7.922 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09171, allocations: 0 / 416.1 MB, free: 7.922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002855/0.092, allocations: 75.98 kB / 416.1 MB, free: 7.848 MB / 350.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.0007886/0.0928, allocations: 403.2 kB / 416.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002881/0.0931, allocations: 195.3 kB / 416.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.09311, allocations: 0 / 416.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001551/0.09327, allocations: 135.4 kB / 416.9 MB, free: 7.203 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002601/0.09354, allocations: 18.09 kB / 416.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003954/0.09395, allocations: 273.6 kB / 417.1 MB, free: 6.879 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002175/0.09417, allocations: 0.6965 MB / 417.8 MB, free: 6.156 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.762e-05/0.09422, allocations: 15.42 kB / 417.9 MB, free: 6.141 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.09423, allocations: 4 kB / 417.9 MB, free: 6.137 MB / 350.1 MB Notification: Performance of Templates: time 0.004287/0.09852, allocations: 2.563 MB / 420.4 MB, free: 3.586 MB / 350.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)