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/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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008334/0.008334, allocations: 100.5 kB / 15.73 MB, free: 5.582 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.001689/0.001689, allocations: 199.1 kB / 16.67 MB, free: 5.523 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8182/0.8182, allocations: 132.2 MB / 422.7 MB, free: 6.598 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002177/0.002177, allocations: 58.61 kB / 0.5813 GB, free: 24 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1927/0.1949, allocations: 80.21 MB / 0.6596 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003741/0.1987, allocations: 1.633 MB / 0.6612 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001043/0.1998, allocations: 0.5494 MB / 0.6618 GB, free: 8.219 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001277/0.1999, allocations: 4 kB / 0.6618 GB, free: 8.215 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002447/0.2002, allocations: 27.72 kB / 0.6618 GB, free: 8.188 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003843/0.2006, allocations: 59.73 kB / 0.6619 GB, free: 8.129 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002134/0.2008, allocations: 63.86 kB / 0.6619 GB, free: 8.066 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002636/0.2011, allocations: 143.5 kB / 0.6621 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001992/0.2013, allocations: 53.44 kB / 0.6621 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001571/0.2015, allocations: 51.84 kB / 0.6622 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000142/0.2016, allocations: 59.69 kB / 0.6622 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.752e-05/0.2017, allocations: 8 kB / 0.6622 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.058e-05/0.2018, allocations: 23.94 kB / 0.6623 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.2019, allocations: 47.83 kB / 0.6623 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.072e-05/0.202, allocations: 59.61 kB / 0.6624 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002174/0.2022, allocations: 147.4 kB / 0.6625 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2022, allocations: 0 / 0.6625 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.512e-06/0.2022, allocations: 0 / 0.6625 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.2022, allocations: 0 / 0.6625 GB, free: 7.477 MB / 0.4981 GB 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.000678/0.2029, allocations: 478.6 kB / 0.663 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.2029, allocations: 8.031 kB / 0.663 GB, free: 6.953 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.168e-05/0.203, allocations: 20.75 kB / 0.663 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003513/0.2034, allocations: 232.9 kB / 0.6632 GB, free: 6.664 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.2034, allocations: 8.375 kB / 0.6632 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.585e-05/0.2034, allocations: 4.375 kB / 0.6632 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003033/0.2037, allocations: 113.9 kB / 0.6633 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.2037, allocations: 3.938 kB / 0.6633 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.2038, allocations: 8 kB / 0.6633 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-06/0.2038, allocations: 0 / 0.6633 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002287/0.204, allocations: 59.94 kB / 0.6634 GB, free: 6.465 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006814/0.2047, allocations: 388.4 kB / 0.6638 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001489/0.2049, allocations: 42.55 kB / 0.6638 GB, free: 5.984 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.205, allocations: 24.91 kB / 0.6638 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.737e-05/0.205, allocations: 3.984 kB / 0.6638 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002768/0.2053, allocations: 101 kB / 0.6639 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.473e-06/0.2053, allocations: 7.938 kB / 0.6639 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004661/0.2058, allocations: 117.4 kB / 0.664 GB, free: 5.707 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.764e-05/0.2058, allocations: 77.11 kB / 0.6641 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002778/0.2061, allocations: 257 kB / 0.6644 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.22e-05/0.2062, allocations: 29.7 kB / 0.6644 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.723e-05/0.2063, allocations: 132 kB / 0.6645 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.17e-05/0.2063, allocations: 7.891 kB / 0.6645 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.606e-05/0.2063, allocations: 21.7 kB / 0.6645 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.2065, allocations: 322.8 kB / 0.6649 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.2066, allocations: 27.91 kB / 0.6649 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001223/0.2067, allocations: 51.41 kB / 0.6649 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002249/0.207, allocations: 66.53 kB / 0.665 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.207, allocations: 0 / 0.665 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000283/0.2073, allocations: 105.4 kB / 0.6651 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.2073, allocations: 4 kB / 0.6651 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.2073, allocations: 0 / 0.6651 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.2073, allocations: 11.88 kB / 0.6651 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001158/0.2074, allocations: 11.98 kB / 0.6651 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.2075, allocations: 0 / 0.6651 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.161e-05/0.2076, allocations: 11.98 kB / 0.6651 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.435e-06/0.2076, allocations: 4.094 kB / 0.6651 GB, free: 4.508 MB / 0.4981 GB 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 0.0001211/0.2077, allocations: 137.7 kB / 0.6653 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.177e-05/0.2077, allocations: 19.72 kB / 0.6653 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.523e-05/0.2078, allocations: 17.23 kB / 0.6653 GB, free: 4.328 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.832e-06/0.2078, allocations: 7.938 kB / 0.6653 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.2078, allocations: 7.938 kB / 0.6653 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.2078, allocations: 0 / 0.6653 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001858/0.208, allocations: 213.6 kB / 0.6655 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.208, allocations: 0 / 0.6655 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.595e-05/0.2081, allocations: 19.98 kB / 0.6655 GB, free: 4.035 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.2081, allocations: 0 / 0.6655 GB, free: 4.035 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.896e-06/0.2081, allocations: 0 / 0.6655 GB, free: 4.035 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/0.2081, allocations: 7.938 kB / 0.6655 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2081, allocations: 0 / 0.6655 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003033/0.2084, allocations: 120.8 kB / 0.6657 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.709e-05/0.2085, allocations: 92.92 kB / 0.6657 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.443e-05/0.2085, allocations: 4.312 kB / 0.6658 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.548e-05/0.2086, allocations: 7.938 kB / 0.6658 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.053e-05/0.2087, allocations: 11.98 kB / 0.6658 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.2087, allocations: 4 kB / 0.6658 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000182/0.2089, allocations: 188.5 kB / 0.666 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2089, allocations: 0 / 0.666 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000235/0.2092, allocations: 23.94 kB / 0.666 GB, free: 3.547 MB / 0.4981 GB 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.0002494/0.2094, allocations: 117.7 kB / 0.6661 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002834/0.2097, allocations: 59.88 kB / 0.6661 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/0.2097, allocations: 4.188 kB / 0.6662 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001079/0.2098, allocations: 19.98 kB / 0.6662 GB, free: 3.344 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002973/0.2101, allocations: 60.12 kB / 0.6662 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005191/0.2107, allocations: 276 kB / 0.6665 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000308/0.211, allocations: 0.7235 MB / 0.6672 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.885e-05/0.2111, allocations: 20.53 kB / 0.6672 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.681e-05/0.2111, allocations: 15.44 kB / 0.6672 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of SimCode: time 3.3e-07/0.2111, allocations: 0 / 0.6672 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of Templates: time 0.004715/0.2158, allocations: 1.754 MB / 0.6689 GB, free: 488 kB / 0.4981 GB 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)