Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.conf.json 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/IDEAS 3.0.0/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) Running command: translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001513/0.001513, allocations: 182.1 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7564/0.7564, allocations: 132.2 MB / 148.9 MB, free: 12.14 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 403.4 MB, free: 7.094 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 109.7 kB / 484.4 MB, free: 8.703 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001017/0.001017, allocations: 51.92 kB / 0.5619 GB, free: 71.04 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1448, allocations: 80.2 MB / 0.6402 GB, free: 6.77 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002766/0.1476, allocations: 1.685 MB / 0.6418 GB, free: 5.066 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008027/0.1484, allocations: 0.5572 MB / 0.6424 GB, free: 4.504 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.876e-05/0.1485, allocations: 4 kB / 0.6424 GB, free: 4.5 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001699/0.1487, allocations: 19.86 kB / 0.6424 GB, free: 4.48 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002894/0.149, allocations: 55.75 kB / 0.6424 GB, free: 4.426 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001613/0.1492, allocations: 55.94 kB / 0.6425 GB, free: 4.371 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001664/0.1494, allocations: 131.5 kB / 0.6426 GB, free: 4.242 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001509/0.1495, allocations: 41.47 kB / 0.6427 GB, free: 4.199 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.1496, allocations: 47.78 kB / 0.6427 GB, free: 4.152 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.932e-05/0.1497, allocations: 67.69 kB / 0.6428 GB, free: 4.086 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 2.564e-05/0.1498, allocations: 11.94 kB / 0.6428 GB, free: 4.074 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.101e-05/0.1498, allocations: 16 kB / 0.6428 GB, free: 4.059 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 8.042e-05/0.1499, allocations: 43.83 kB / 0.6428 GB, free: 4.016 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 6.402e-05/0.15, allocations: 55.61 kB / 0.6429 GB, free: 3.961 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001611/0.1502, allocations: 135.7 kB / 0.643 GB, free: 3.828 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1502, allocations: 4 kB / 0.643 GB, free: 3.824 MB / 442.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.1502, allocations: 0 / 0.643 GB, free: 3.824 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.1502, allocations: 0 / 0.643 GB, free: 3.824 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005748/0.1508, allocations: 482.5 kB / 0.6435 GB, free: 3.305 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.1508, allocations: 8.031 kB / 0.6435 GB, free: 3.297 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.766e-05/0.1509, allocations: 16.75 kB / 0.6435 GB, free: 3.281 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002277/0.1511, allocations: 226.3 kB / 0.6437 GB, free: 3.023 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.1511, allocations: 8.375 kB / 0.6437 GB, free: 3.016 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.619e-05/0.1511, allocations: 4.375 kB / 0.6437 GB, free: 3.012 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002579/0.1514, allocations: 115.3 kB / 0.6438 GB, free: 2.895 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.1514, allocations: 0 / 0.6438 GB, free: 2.895 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.1514, allocations: 8 kB / 0.6438 GB, free: 2.887 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.1514, allocations: 3.984 kB / 0.6439 GB, free: 2.883 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002243/0.1517, allocations: 59.94 kB / 0.6439 GB, free: 2.824 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005375/0.1522, allocations: 384.4 kB / 0.6443 GB, free: 2.398 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.1524, allocations: 42.56 kB / 0.6443 GB, free: 2.348 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.1525, allocations: 28.89 kB / 0.6443 GB, free: 2.316 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.486e-05/0.1525, allocations: 0 / 0.6443 GB, free: 2.316 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002424/0.1528, allocations: 105 kB / 0.6444 GB, free: 2.195 MB / 442.7 MB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.1528, allocations: 0 / 0.6444 GB, free: 2.195 MB / 442.7 MB Notification: Performance of matching and sorting (n=3): time 0.0004075/0.1532, allocations: 117.4 kB / 0.6446 GB, free: 2.074 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.1532, allocations: 81.11 kB / 0.6446 GB, free: 1.977 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000218/0.1535, allocations: 252.9 kB / 0.6449 GB, free: 1.723 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.1535, allocations: 37.7 kB / 0.6449 GB, free: 1.68 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.635e-05/0.1536, allocations: 128 kB / 0.645 GB, free: 1.551 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.582e-05/0.1536, allocations: 11.75 kB / 0.645 GB, free: 1.539 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.45e-05/0.1536, allocations: 17.72 kB / 0.6451 GB, free: 1.516 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.3e-05/0.1537, allocations: 326.8 kB / 0.6454 GB, free: 1.188 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.1538, allocations: 19.98 kB / 0.6454 GB, free: 1.168 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001115/0.1539, allocations: 59.28 kB / 0.6454 GB, free: 1.098 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002003/0.1542, allocations: 70.52 kB / 0.6455 GB, free: 1.02 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1542, allocations: 0 / 0.6455 GB, free: 1.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002613/0.1544, allocations: 105.4 kB / 0.6456 GB, free: 0.9102 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.1545, allocations: 4 kB / 0.6456 GB, free: 0.9062 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.1545, allocations: 4 kB / 0.6456 GB, free: 0.9023 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.1545, allocations: 3.938 kB / 0.6456 GB, free: 0.8984 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.1546, allocations: 19.92 kB / 0.6456 GB, free: 0.8789 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.1546, allocations: 0 / 0.6456 GB, free: 0.8789 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.226e-05/0.1547, allocations: 16.08 kB / 0.6457 GB, free: 0.8633 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.1547, allocations: 0 / 0.6457 GB, free: 0.8633 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 9.292e-05/0.1548, allocations: 133.8 kB / 0.6458 GB, free: 0.7227 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.732e-05/0.1548, allocations: 15.81 kB / 0.6458 GB, free: 0.707 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.222e-05/0.1549, allocations: 17.23 kB / 0.6458 GB, free: 0.6875 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1549, allocations: 7.938 kB / 0.6458 GB, free: 0.6797 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.1549, allocations: 0 / 0.6458 GB, free: 0.6797 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1549, allocations: 0 / 0.6458 GB, free: 0.6797 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001437/0.155, allocations: 209.6 kB / 0.646 GB, free: 436 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.1551, allocations: 4 kB / 0.646 GB, free: 432 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.644e-05/0.1551, allocations: 11.98 kB / 0.646 GB, free: 420 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.1551, allocations: 0 / 0.646 GB, free: 420 kB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.064e-06/0.1552, allocations: 0 / 0.646 GB, free: 420 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.1552, allocations: 7.938 kB / 0.6461 GB, free: 412 kB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.1552, allocations: 0 / 0.6461 GB, free: 412 kB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005817/0.1558, allocations: 0.737 MB / 0.6468 GB, free: 15.61 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.648e-05/0.1558, allocations: 92.86 kB / 0.6469 GB, free: 15.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.895e-05/0.1558, allocations: 0 / 0.6469 GB, free: 15.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.948e-05/0.1559, allocations: 7.984 kB / 0.6469 GB, free: 15.49 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.235e-05/0.156, allocations: 7.984 kB / 0.6469 GB, free: 15.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.056e-05/0.156, allocations: 4 kB / 0.6469 GB, free: 15.48 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00017/0.1562, allocations: 196.5 kB / 0.6471 GB, free: 15.29 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1562, allocations: 3.938 kB / 0.6471 GB, free: 15.29 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003017/0.1565, allocations: 16 kB / 0.6471 GB, free: 15.27 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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.0001977/0.1567, allocations: 120.1 kB / 0.6472 GB, free: 15.14 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0002533/0.157, allocations: 59.94 kB / 0.6473 GB, free: 15.08 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.157, allocations: 0 / 0.6473 GB, free: 15.08 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.1571, allocations: 27.92 kB / 0.6473 GB, free: 15.05 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002677/0.1574, allocations: 46.67 kB / 0.6473 GB, free: 15.01 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005166/0.1579, allocations: 429 kB / 0.6477 GB, free: 14.55 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002224/0.1581, allocations: 0.7199 MB / 0.6484 GB, free: 13.8 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 5.99e-05/0.1582, allocations: 16.55 kB / 0.6485 GB, free: 13.79 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.43e-05/0.1582, allocations: 15.42 kB / 0.6485 GB, free: 13.77 MB / 458.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1582, allocations: 0 / 0.6485 GB, free: 13.77 MB / 458.7 MB Notification: Performance of Templates: time 0.003868/0.1621, allocations: 1.655 MB / 0.6501 GB, free: 12.14 MB / 458.7 MB make -j1 -f IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.sim & ./IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)