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.001215/0.001215, allocations: 113.9 kB / 16.37 MB, free: 6.016 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.001104/0.001104, allocations: 194.4 kB / 17.31 MB, free: 5.613 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.457/1.457, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7726/0.7726, allocations: 132.2 MB / 423.3 MB, free: 6.602 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 59.91 kB / 0.5032 GB, free: 10.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3304/0.3316, allocations: 80.18 MB / 0.5815 GB, free: 27.62 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002754/0.3344, allocations: 1.64 MB / 0.5831 GB, free: 26.36 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007391/0.3351, allocations: 0.5435 MB / 0.5836 GB, free: 25.92 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.12e-05/0.3352, allocations: 7.344 kB / 0.5836 GB, free: 25.92 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001546/0.3354, allocations: 18.08 kB / 0.5837 GB, free: 25.9 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002296/0.3356, allocations: 65.92 kB / 0.5837 GB, free: 25.86 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001295/0.3358, allocations: 68 kB / 0.5838 GB, free: 25.8 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000158/0.3359, allocations: 133.1 kB / 0.5839 GB, free: 25.73 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001451/0.3361, allocations: 49.55 kB / 0.584 GB, free: 25.7 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.713e-05/0.3362, allocations: 54.34 kB / 0.584 GB, free: 25.67 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.51e-05/0.3363, allocations: 63.12 kB / 0.5841 GB, free: 25.62 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.971e-05/0.3363, allocations: 7.969 kB / 0.5841 GB, free: 25.62 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.525e-05/0.3364, allocations: 25.14 kB / 0.5841 GB, free: 25.62 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.101e-05/0.3365, allocations: 47.67 kB / 0.5841 GB, free: 25.59 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.982e-05/0.3365, allocations: 56.2 kB / 0.5842 GB, free: 25.55 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001532/0.3367, allocations: 156 kB / 0.5843 GB, free: 25.43 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.3367, allocations: 0 / 0.5843 GB, free: 25.43 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3367, allocations: 3.938 kB / 0.5843 GB, free: 25.43 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.3367, allocations: 4.531 kB / 0.5844 GB, free: 25.43 MB / 446.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.0004956/0.3372, allocations: 460.1 kB / 0.5848 GB, free: 24.98 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.3373, allocations: 11.19 kB / 0.5848 GB, free: 24.98 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.003e-05/0.3373, allocations: 21.16 kB / 0.5848 GB, free: 24.97 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002444/0.3376, allocations: 237 kB / 0.585 GB, free: 24.72 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.3376, allocations: 7.156 kB / 0.5851 GB, free: 24.72 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.618e-05/0.3376, allocations: 14.8 kB / 0.5851 GB, free: 24.71 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002491/0.3379, allocations: 108.7 kB / 0.5852 GB, free: 24.64 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.3379, allocations: 0 / 0.5852 GB, free: 24.64 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.3379, allocations: 1.531 kB / 0.5852 GB, free: 24.64 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.3379, allocations: 2.688 kB / 0.5852 GB, free: 24.64 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002113/0.3381, allocations: 68.81 kB / 0.5852 GB, free: 24.61 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004808/0.3386, allocations: 380.8 kB / 0.5856 GB, free: 24.25 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000119/0.3388, allocations: 46.36 kB / 0.5857 GB, free: 24.21 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.475e-05/0.3389, allocations: 26.77 kB / 0.5857 GB, free: 24.19 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.7e-05/0.3389, allocations: 1.594 kB / 0.5857 GB, free: 24.19 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002072/0.3391, allocations: 101 kB / 0.5858 GB, free: 24.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.233e-06/0.3391, allocations: 0 / 0.5858 GB, free: 24.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003827/0.3395, allocations: 124.7 kB / 0.5859 GB, free: 24.02 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.256e-05/0.3395, allocations: 78.42 kB / 0.586 GB, free: 23.93 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002058/0.3398, allocations: 260.8 kB / 0.5862 GB, free: 23.75 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.244e-05/0.3398, allocations: 27.73 kB / 0.5862 GB, free: 23.72 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.929e-05/0.3398, allocations: 126 kB / 0.5864 GB, free: 23.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.549e-05/0.3399, allocations: 9.188 kB / 0.5864 GB, free: 23.59 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.323e-05/0.3399, allocations: 17.31 kB / 0.5864 GB, free: 23.57 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.078e-05/0.34, allocations: 330 kB / 0.5867 GB, free: 23.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.3401, allocations: 20.53 kB / 0.5867 GB, free: 23.24 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001037/0.3402, allocations: 49.75 kB / 0.5868 GB, free: 23.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001961/0.3404, allocations: 73.36 kB / 0.5868 GB, free: 23.15 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3404, allocations: 0 / 0.5868 GB, free: 23.15 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002467/0.3406, allocations: 103.9 kB / 0.5869 GB, free: 23.08 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.3407, allocations: 8.156 kB / 0.5869 GB, free: 23.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.3407, allocations: 1.094 kB / 0.5869 GB, free: 23.08 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.3407, allocations: 5.094 kB / 0.587 GB, free: 23.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.3408, allocations: 11.83 kB / 0.587 GB, free: 23.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.313e-06/0.3408, allocations: 1.438 kB / 0.587 GB, free: 23.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.202e-05/0.3409, allocations: 15.45 kB / 0.587 GB, free: 23.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.547e-06/0.3409, allocations: 1.281 kB / 0.587 GB, free: 23.07 MB / 446.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001034/0.341, allocations: 133.5 kB / 0.5871 GB, free: 22.94 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.648e-05/0.3411, allocations: 16.66 kB / 0.5871 GB, free: 22.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.24e-05/0.3411, allocations: 23.14 kB / 0.5871 GB, free: 22.91 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.3411, allocations: 12.94 kB / 0.5872 GB, free: 22.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3412, allocations: 0.5312 kB / 0.5872 GB, free: 22.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.3412, allocations: 0 / 0.5872 GB, free: 22.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000138/0.3413, allocations: 222 kB / 0.5874 GB, free: 22.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.3413, allocations: 0 / 0.5874 GB, free: 22.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.679e-05/0.3414, allocations: 11.39 kB / 0.5874 GB, free: 22.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3414, allocations: 1.25 kB / 0.5874 GB, free: 22.66 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.3414, allocations: 0 / 0.5874 GB, free: 22.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.3414, allocations: 9.781 kB / 0.5874 GB, free: 22.65 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3414, allocations: 0 / 0.5874 GB, free: 22.65 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002666/0.3417, allocations: 127.1 kB / 0.5875 GB, free: 22.55 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.183e-05/0.3418, allocations: 89.23 kB / 0.5876 GB, free: 22.45 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/0.3418, allocations: 1.219 kB / 0.5876 GB, free: 22.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.823e-05/0.3419, allocations: 13.92 kB / 0.5876 GB, free: 22.44 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.796e-05/0.3419, allocations: 7.562 kB / 0.5876 GB, free: 22.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.73e-05/0.342, allocations: 9.234 kB / 0.5876 GB, free: 22.43 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001502/0.3421, allocations: 189 kB / 0.5878 GB, free: 22.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3421, allocations: 0 / 0.5878 GB, free: 22.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002422/0.3424, allocations: 21.44 kB / 0.5878 GB, free: 22.3 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 (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.0002168/0.3426, allocations: 110.3 kB / 0.5879 GB, free: 22.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002787/0.3429, allocations: 59.17 kB / 0.588 GB, free: 22.18 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3429, allocations: 1.125 kB / 0.588 GB, free: 22.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001051/0.343, allocations: 32.56 kB / 0.588 GB, free: 22.17 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003092/0.3433, allocations: 52.14 kB / 0.5881 GB, free: 22.14 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005163/0.3439, allocations: 278.8 kB / 0.5883 GB, free: 21.94 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001971/0.3441, allocations: 0.7223 MB / 0.589 GB, free: 21.22 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.126e-05/0.3441, allocations: 15.27 kB / 0.5891 GB, free: 21.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.852e-05/0.3442, allocations: 14 kB / 0.5891 GB, free: 21.21 MB / 446.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3442, allocations: 1.094 kB / 0.5891 GB, free: 21.21 MB / 446.1 MB Notification: Performance of Templates: time 0.004575/0.3488, allocations: 1.766 MB / 0.5908 GB, free: 20.36 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 -s cvode -lv LOG_STATS > IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)