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.001045/0.001045, allocations: 114.4 kB / 16.37 MB, free: 6.012 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.001613/0.001613, allocations: 192.6 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.371/1.371, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7838/0.7838, allocations: 132.2 MB / 423.3 MB, free: 6.617 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 59.91 kB / 0.5032 GB, free: 10.94 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3666/0.3678, allocations: 80.19 MB / 0.5815 GB, free: 27.66 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002751/0.3706, allocations: 1.643 MB / 0.5831 GB, free: 26.39 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007727/0.3714, allocations: 0.5439 MB / 0.5836 GB, free: 25.95 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.746e-05/0.3715, allocations: 2.5 kB / 0.5836 GB, free: 25.95 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001536/0.3717, allocations: 30.92 kB / 0.5837 GB, free: 25.93 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002201/0.3719, allocations: 65.98 kB / 0.5837 GB, free: 25.88 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000123/0.3721, allocations: 63 kB / 0.5838 GB, free: 25.83 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001711/0.3722, allocations: 137.9 kB / 0.5839 GB, free: 25.75 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.3724, allocations: 49.55 kB / 0.584 GB, free: 25.72 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001018/0.3725, allocations: 50.59 kB / 0.584 GB, free: 25.7 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.397e-05/0.3726, allocations: 65.84 kB / 0.5841 GB, free: 25.65 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.004e-05/0.3726, allocations: 9.25 kB / 0.5841 GB, free: 25.65 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.264e-05/0.3727, allocations: 23.39 kB / 0.5841 GB, free: 25.64 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.586e-05/0.3728, allocations: 45.61 kB / 0.5841 GB, free: 25.61 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.433e-05/0.3729, allocations: 57.14 kB / 0.5842 GB, free: 25.57 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001752/0.373, allocations: 154 kB / 0.5843 GB, free: 25.46 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.373, allocations: 2.188 kB / 0.5844 GB, free: 25.46 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.373, allocations: 0 / 0.5844 GB, free: 25.46 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.659e-06/0.3731, allocations: 0 / 0.5844 GB, free: 25.46 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.0005463/0.3736, allocations: 463.2 kB / 0.5848 GB, free: 25.02 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.3737, allocations: 10.22 kB / 0.5848 GB, free: 25.02 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.581e-05/0.3737, allocations: 20.88 kB / 0.5848 GB, free: 25 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002855/0.374, allocations: 242.1 kB / 0.5851 GB, free: 24.75 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.374, allocations: 6.656 kB / 0.5851 GB, free: 24.75 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.41e-05/0.3741, allocations: 6.188 kB / 0.5851 GB, free: 24.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002589/0.3743, allocations: 109 kB / 0.5852 GB, free: 24.68 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.3743, allocations: 0.5 kB / 0.5852 GB, free: 24.68 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.3744, allocations: 6.344 kB / 0.5852 GB, free: 24.67 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.3744, allocations: 1.219 kB / 0.5852 GB, free: 24.67 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002131/0.3746, allocations: 60.97 kB / 0.5852 GB, free: 24.65 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004804/0.3751, allocations: 389 kB / 0.5856 GB, free: 24.28 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001204/0.3752, allocations: 38.36 kB / 0.5856 GB, free: 24.25 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.646e-05/0.3753, allocations: 34.86 kB / 0.5857 GB, free: 24.22 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.3753, allocations: 1.031 kB / 0.5857 GB, free: 24.22 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002153/0.3756, allocations: 101 kB / 0.5858 GB, free: 24.13 MB / 446.1 MB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.3756, allocations: 0 / 0.5858 GB, free: 24.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004008/0.376, allocations: 118 kB / 0.5859 GB, free: 24.06 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.059e-05/0.376, allocations: 82.95 kB / 0.586 GB, free: 23.96 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002159/0.3762, allocations: 257.2 kB / 0.5862 GB, free: 23.79 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.175e-05/0.3763, allocations: 29.7 kB / 0.5862 GB, free: 23.75 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.125e-05/0.3763, allocations: 125.2 kB / 0.5864 GB, free: 23.64 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.58e-05/0.3763, allocations: 10.75 kB / 0.5864 GB, free: 23.63 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.301e-05/0.3764, allocations: 17.53 kB / 0.5864 GB, free: 23.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.217e-05/0.3764, allocations: 326.8 kB / 0.5867 GB, free: 23.29 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.792e-05/0.3765, allocations: 23.92 kB / 0.5867 GB, free: 23.28 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.6e-05/0.3766, allocations: 51.28 kB / 0.5868 GB, free: 23.23 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001798/0.3768, allocations: 75.33 kB / 0.5868 GB, free: 23.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.3768, allocations: 0 / 0.5868 GB, free: 23.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002403/0.3771, allocations: 104 kB / 0.5869 GB, free: 23.11 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.3771, allocations: 5.75 kB / 0.5869 GB, free: 23.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.3771, allocations: 0.875 kB / 0.5869 GB, free: 23.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.3771, allocations: 6.469 kB / 0.587 GB, free: 23.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.3773, allocations: 12.05 kB / 0.587 GB, free: 23.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.3773, allocations: 1.344 kB / 0.587 GB, free: 23.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.255e-05/0.3774, allocations: 16.3 kB / 0.587 GB, free: 23.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-06/0.3774, allocations: 6.797 kB / 0.587 GB, free: 23.09 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 7.515e-05/0.3774, allocations: 133.2 kB / 0.5871 GB, free: 22.96 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.822e-05/0.3775, allocations: 15.72 kB / 0.5871 GB, free: 22.96 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.931e-05/0.3775, allocations: 18.3 kB / 0.5871 GB, free: 22.94 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.3775, allocations: 12.06 kB / 0.5872 GB, free: 22.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/0.3775, allocations: 0 / 0.5872 GB, free: 22.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.3776, allocations: 0 / 0.5872 GB, free: 22.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001296/0.3777, allocations: 212.3 kB / 0.5874 GB, free: 22.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3777, allocations: 4 kB / 0.5874 GB, free: 22.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.7e-05/0.3778, allocations: 14.95 kB / 0.5874 GB, free: 22.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.3778, allocations: 1.344 kB / 0.5874 GB, free: 22.69 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.178e-06/0.3778, allocations: 4.625 kB / 0.5874 GB, free: 22.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.3778, allocations: 4.781 kB / 0.5874 GB, free: 22.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3778, allocations: 2.562 kB / 0.5874 GB, free: 22.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002478/0.3781, allocations: 125.5 kB / 0.5875 GB, free: 22.58 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.113e-05/0.3781, allocations: 90.39 kB / 0.5876 GB, free: 22.48 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.977e-05/0.3781, allocations: 0 / 0.5876 GB, free: 22.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.846e-05/0.3782, allocations: 14.2 kB / 0.5876 GB, free: 22.47 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4e-05/0.3783, allocations: 7.812 kB / 0.5876 GB, free: 22.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-05/0.3783, allocations: 7.672 kB / 0.5876 GB, free: 22.46 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001381/0.3784, allocations: 184.3 kB / 0.5878 GB, free: 22.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3784, allocations: 0 / 0.5878 GB, free: 22.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002123/0.3787, allocations: 27.33 kB / 0.5878 GB, free: 22.34 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.0001782/0.3788, allocations: 115.3 kB / 0.5879 GB, free: 22.24 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002557/0.3791, allocations: 61.59 kB / 0.588 GB, free: 22.21 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3791, allocations: 0 / 0.588 GB, free: 22.21 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.798e-05/0.3792, allocations: 25.62 kB / 0.588 GB, free: 22.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/0.3795, allocations: 44.27 kB / 0.5881 GB, free: 22.18 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004456/0.38, allocations: 284.8 kB / 0.5883 GB, free: 21.97 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001405/0.3801, allocations: 0.7206 MB / 0.589 GB, free: 21.25 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.949e-05/0.3802, allocations: 19.75 kB / 0.5891 GB, free: 21.25 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.243e-05/0.3802, allocations: 18.31 kB / 0.5891 GB, free: 21.23 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3802, allocations: 2.344 kB / 0.5891 GB, free: 21.23 MB / 446.1 MB Notification: Performance of Templates: time 0.004513/0.3848, allocations: 1.76 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 gbode -lv LOG_STATS > IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)