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.0008673/0.0008673, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0009418/0.0009418, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.18/1.18, allocations: 223.3 MB / 240 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6617/0.6617, allocations: 132.4 MB / 423.4 MB, free: 2.016 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002711/0.0002712, allocations: 8.562 kB / 0.5034 GB, free: 4.242 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3396, allocations: 81.57 MB / 0.5831 GB, free: 3.977 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.001557/0.3412, allocations: 1.318 MB / 0.5844 GB, free: 3.027 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006924/0.3419, allocations: 0.5168 MB / 0.5849 GB, free: 2.664 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.804e-05/0.342, allocations: 6.594 kB / 0.5849 GB, free: 2.66 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.3422, allocations: 28.86 kB / 0.5849 GB, free: 2.641 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001939/0.3424, allocations: 47.27 kB / 0.5849 GB, free: 2.617 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001421/0.3425, allocations: 57.47 kB / 0.585 GB, free: 2.59 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001595/0.3427, allocations: 118.8 kB / 0.5851 GB, free: 2.535 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001262/0.3428, allocations: 41.77 kB / 0.5852 GB, free: 2.516 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001036/0.3429, allocations: 41.47 kB / 0.5852 GB, free: 2.5 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.288e-05/0.343, allocations: 50.38 kB / 0.5852 GB, free: 2.477 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.218e-05/0.3431, allocations: 2.75 kB / 0.5852 GB, free: 2.477 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.259e-05/0.3431, allocations: 19.33 kB / 0.5853 GB, free: 2.469 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 6.661e-05/0.3432, allocations: 38.14 kB / 0.5853 GB, free: 2.453 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.868e-05/0.3432, allocations: 43.8 kB / 0.5853 GB, free: 2.41 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001408/0.3434, allocations: 98.2 kB / 0.5854 GB, free: 2.387 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3434, allocations: 0 / 0.5854 GB, free: 2.387 MB / 430.1 MB Notification: Performance of FrontEnd: time 8.61e-07/0.3434, allocations: 5.75 kB / 0.5854 GB, free: 2.383 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.3434, allocations: 0 / 0.5854 GB, free: 2.383 MB / 430.1 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.0004553/0.3439, allocations: 452.1 kB / 0.5859 GB, free: 1.965 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.909e-05/0.3439, allocations: 8.812 kB / 0.5859 GB, free: 1.965 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.96e-05/0.344, allocations: 16.5 kB / 0.5859 GB, free: 1.957 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001896/0.3442, allocations: 234.5 kB / 0.5861 GB, free: 1.723 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.3442, allocations: 14.69 kB / 0.5861 GB, free: 1.711 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.091e-05/0.3442, allocations: 3.594 kB / 0.5861 GB, free: 1.711 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002516/0.3445, allocations: 112.5 kB / 0.5862 GB, free: 1.66 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.3445, allocations: 3.938 kB / 0.5862 GB, free: 1.656 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.3445, allocations: 1.578 kB / 0.5862 GB, free: 1.656 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.3445, allocations: 1.5 kB / 0.5862 GB, free: 1.656 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002087/0.3447, allocations: 81.34 kB / 0.5863 GB, free: 1.641 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004797/0.3452, allocations: 391.7 kB / 0.5867 GB, free: 1.32 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000121/0.3453, allocations: 46.78 kB / 0.5867 GB, free: 1.293 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.502e-05/0.3454, allocations: 35.28 kB / 0.5868 GB, free: 1.281 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/0.3455, allocations: 8.75 kB / 0.5868 GB, free: 1.273 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002213/0.3457, allocations: 108.2 kB / 0.5869 GB, free: 1.195 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.553e-06/0.3457, allocations: 0 / 0.5869 GB, free: 1.195 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003782/0.3461, allocations: 142 kB / 0.587 GB, free: 1.141 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.745e-05/0.3461, allocations: 78.88 kB / 0.5871 GB, free: 1.047 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002192/0.3463, allocations: 257.4 kB / 0.5873 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.167e-05/0.3464, allocations: 27.78 kB / 0.5874 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.831e-05/0.3464, allocations: 125.5 kB / 0.5875 GB, free: 0.75 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.314e-05/0.3464, allocations: 9.953 kB / 0.5875 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.998e-06/0.3464, allocations: 4 kB / 0.5875 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.31e-05/0.3465, allocations: 324.6 kB / 0.5878 GB, free: 432 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001/0.3466, allocations: 32.17 kB / 0.5878 GB, free: 428 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.884e-05/0.3467, allocations: 57.67 kB / 0.5879 GB, free: 388 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001078/0.3468, allocations: 40.17 kB / 0.5879 GB, free: 376 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3468, allocations: 4 kB / 0.5879 GB, free: 372 kB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000252/0.3471, allocations: 118.8 kB / 0.5881 GB, free: 316 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.3471, allocations: 10.05 kB / 0.5881 GB, free: 312 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.3471, allocations: 5.062 kB / 0.5881 GB, free: 308 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.3471, allocations: 1 kB / 0.5881 GB, free: 308 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.643e-05/0.3472, allocations: 14.97 kB / 0.5881 GB, free: 308 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.3472, allocations: 2.312 kB / 0.5881 GB, free: 308 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.087e-05/0.3473, allocations: 23.45 kB / 0.5881 GB, free: 300 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.163e-06/0.3473, allocations: 5.25 kB / 0.5881 GB, free: 296 kB / 430.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.422e-05/0.3474, allocations: 126.8 kB / 0.5882 GB, free: 172 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.361e-05/0.3474, allocations: 20.77 kB / 0.5883 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.988e-05/0.3475, allocations: 19.08 kB / 0.5883 GB, free: 148 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.3475, allocations: 0 / 0.5883 GB, free: 148 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.3475, allocations: 0 / 0.5883 GB, free: 148 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-06/0.3475, allocations: 1.922 kB / 0.5883 GB, free: 148 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001531/0.3477, allocations: 212.4 kB / 0.5885 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3477, allocations: 0.7031 kB / 0.5885 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.118e-05/0.3478, allocations: 21.86 kB / 0.5885 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3478, allocations: 4.812 kB / 0.5885 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.3478, allocations: 9.266 kB / 0.5885 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3478, allocations: 1.219 kB / 0.5885 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.3478, allocations: 0.5625 kB / 0.5885 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002662/0.3481, allocations: 138.5 kB / 0.5886 GB, free: 15.83 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.046e-05/0.3481, allocations: 92.48 kB / 0.5887 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.265e-05/0.3482, allocations: 6.453 kB / 0.5887 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.665e-05/0.3482, allocations: 17.11 kB / 0.5888 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.324e-05/0.3483, allocations: 8.078 kB / 0.5888 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-05/0.3483, allocations: 5.484 kB / 0.5888 GB, free: 15.72 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001694/0.3485, allocations: 189.2 kB / 0.589 GB, free: 15.61 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3485, allocations: 0 / 0.589 GB, free: 15.61 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002095/0.3487, allocations: 22.08 kB / 0.589 GB, free: 15.61 MB / 446.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001947/0.3489, allocations: 124.6 kB / 0.5891 GB, free: 15.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002703/0.3492, allocations: 75.97 kB / 0.5892 GB, free: 15.49 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3492, allocations: 0 / 0.5892 GB, free: 15.49 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.3493, allocations: 34 kB / 0.5892 GB, free: 15.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002516/0.3496, allocations: 39.25 kB / 0.5892 GB, free: 15.47 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000486/0.3501, allocations: 313.1 kB / 0.5895 GB, free: 15.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002596/0.3503, allocations: 0.7223 MB / 0.5902 GB, free: 14.55 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.583e-05/0.3504, allocations: 18.19 kB / 0.5903 GB, free: 14.55 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.142e-05/0.3505, allocations: 20.11 kB / 0.5903 GB, free: 14.54 MB / 446.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3505, allocations: 0 / 0.5903 GB, free: 14.54 MB / 446.1 MB Notification: Performance of Templates: time 0.004166/0.3546, allocations: 1.553 MB / 0.5918 GB, free: 14.37 MB / 446.1 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)