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.0008766/0.0008764, allocations: 89.66 kB / 15.36 MB, free: 0.7383 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.006552/0.006552, allocations: 170.2 kB / 16.26 MB, free: 6.676 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.393/1.393, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7738/0.7738, allocations: 132.4 MB / 423.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003651/0.0003651, allocations: 8 kB / 0.504 GB, free: 3.887 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4026/0.403, allocations: 81.58 MB / 0.5837 GB, free: 4.035 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.001625/0.4047, allocations: 1.343 MB / 0.585 GB, free: 3.066 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007141/0.4054, allocations: 0.5391 MB / 0.5855 GB, free: 2.684 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.505e-05/0.4055, allocations: 2.188 kB / 0.5855 GB, free: 2.684 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.4056, allocations: 24.03 kB / 0.5855 GB, free: 2.668 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002101/0.4059, allocations: 63.19 kB / 0.5856 GB, free: 2.633 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001376/0.406, allocations: 53.95 kB / 0.5856 GB, free: 2.609 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001735/0.4062, allocations: 123 kB / 0.5858 GB, free: 2.559 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.4063, allocations: 41.2 kB / 0.5858 GB, free: 2.539 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.4065, allocations: 48.64 kB / 0.5858 GB, free: 2.516 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.91e-05/0.4066, allocations: 54.73 kB / 0.5859 GB, free: 2.488 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.617e-05/0.4066, allocations: 2.656 kB / 0.5859 GB, free: 2.488 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.495e-05/0.4067, allocations: 21.03 kB / 0.5859 GB, free: 2.48 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 7.615e-05/0.4067, allocations: 30.48 kB / 0.586 GB, free: 2.473 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.49e-05/0.4068, allocations: 80.09 kB / 0.586 GB, free: 2.402 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001912/0.407, allocations: 131.7 kB / 0.5862 GB, free: 2.355 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.407, allocations: 4 kB / 0.5862 GB, free: 2.352 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.407, allocations: 1.25 kB / 0.5862 GB, free: 2.352 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.407, allocations: 0 / 0.5862 GB, free: 2.352 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.00053/0.4076, allocations: 450.7 kB / 0.5866 GB, free: 1.934 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.4076, allocations: 13.47 kB / 0.5866 GB, free: 1.93 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.937e-05/0.4077, allocations: 17.38 kB / 0.5866 GB, free: 1.922 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002143/0.4079, allocations: 238.7 kB / 0.5868 GB, free: 1.684 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/0.4079, allocations: 6.969 kB / 0.5869 GB, free: 1.68 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.583e-05/0.4079, allocations: 7.391 kB / 0.5869 GB, free: 1.676 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003079/0.4083, allocations: 129.8 kB / 0.587 GB, free: 1.613 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/0.4083, allocations: 0 / 0.587 GB, free: 1.613 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.738e-05/0.4083, allocations: 5.703 kB / 0.587 GB, free: 1.609 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.4083, allocations: 1.375 kB / 0.587 GB, free: 1.609 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000263/0.4086, allocations: 76.83 kB / 0.5871 GB, free: 1.598 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005512/0.4091, allocations: 396.3 kB / 0.5874 GB, free: 1.273 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001467/0.4093, allocations: 50.56 kB / 0.5875 GB, free: 1.242 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.4094, allocations: 35.81 kB / 0.5875 GB, free: 1.23 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/0.4094, allocations: 1.719 kB / 0.5875 GB, free: 1.23 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002649/0.4097, allocations: 110.8 kB / 0.5876 GB, free: 1.148 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.4097, allocations: 0.9375 kB / 0.5876 GB, free: 1.148 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004708/0.4102, allocations: 141.6 kB / 0.5878 GB, free: 1.094 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.4102, allocations: 83.19 kB / 0.5878 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002606/0.4105, allocations: 250.6 kB / 0.5881 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.4105, allocations: 31.45 kB / 0.5881 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.168e-05/0.4106, allocations: 127.4 kB / 0.5882 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.566e-05/0.4106, allocations: 9.094 kB / 0.5882 GB, free: 0.6953 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.118e-05/0.4106, allocations: 10.47 kB / 0.5883 GB, free: 0.6797 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.539e-05/0.4107, allocations: 333.6 kB / 0.5886 GB, free: 364 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/0.4108, allocations: 26.8 kB / 0.5886 GB, free: 364 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.411, allocations: 61.95 kB / 0.5887 GB, free: 320 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002384/0.4112, allocations: 82.05 kB / 0.5887 GB, free: 284 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.4112, allocations: 1.469 kB / 0.5887 GB, free: 284 kB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002972/0.4115, allocations: 118.5 kB / 0.5889 GB, free: 228 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.4116, allocations: 10.39 kB / 0.5889 GB, free: 224 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.4116, allocations: 0 / 0.5889 GB, free: 224 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.4116, allocations: 5.312 kB / 0.5889 GB, free: 220 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.4117, allocations: 23.56 kB / 0.5889 GB, free: 212 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.4117, allocations: 0.5938 kB / 0.5889 GB, free: 212 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.4118, allocations: 19.58 kB / 0.5889 GB, free: 208 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.238e-06/0.4119, allocations: 1.688 kB / 0.5889 GB, free: 208 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.363e-05/0.412, allocations: 131.2 kB / 0.589 GB, free: 80 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.699e-05/0.412, allocations: 24.97 kB / 0.5891 GB, free: 64 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.655e-05/0.412, allocations: 19.2 kB / 0.5891 GB, free: 52 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.412, allocations: 4.219 kB / 0.5891 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.412, allocations: 0 / 0.5891 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.4121, allocations: 1.938 kB / 0.5891 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001956/0.4123, allocations: 215.3 kB / 0.5893 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.4123, allocations: 6.094 kB / 0.5893 GB, free: 15.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.905e-05/0.4124, allocations: 13.22 kB / 0.5893 GB, free: 15.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.4124, allocations: 1.25 kB / 0.5893 GB, free: 15.83 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.4124, allocations: 4.812 kB / 0.5893 GB, free: 15.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.4124, allocations: 8.484 kB / 0.5893 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.4124, allocations: 4.547 kB / 0.5893 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003316/0.4127, allocations: 139.4 kB / 0.5895 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.673e-05/0.4128, allocations: 95.66 kB / 0.5895 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.149e-05/0.4128, allocations: 2.047 kB / 0.5896 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.495e-05/0.4129, allocations: 17.94 kB / 0.5896 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.471e-05/0.413, allocations: 4.094 kB / 0.5896 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-05/0.413, allocations: 5.703 kB / 0.5896 GB, free: 15.62 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001866/0.4132, allocations: 194.4 kB / 0.5898 GB, free: 15.51 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4132, allocations: 0 / 0.5898 GB, free: 15.51 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002212/0.4134, allocations: 17.95 kB / 0.5898 GB, free: 15.51 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.0002025/0.4136, allocations: 111.8 kB / 0.5899 GB, free: 15.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003162/0.414, allocations: 75.28 kB / 0.59 GB, free: 15.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.414, allocations: 0.6562 kB / 0.59 GB, free: 15.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.4141, allocations: 43.11 kB / 0.59 GB, free: 15.39 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003138/0.4144, allocations: 40.12 kB / 0.59 GB, free: 15.38 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005687/0.415, allocations: 330.3 kB / 0.5904 GB, free: 15.14 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003559/0.4154, allocations: 0.7199 MB / 0.5911 GB, free: 14.44 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.404e-05/0.4155, allocations: 23.05 kB / 0.5911 GB, free: 14.43 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.263e-05/0.4155, allocations: 14.92 kB / 0.5911 GB, free: 14.43 MB / 446.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4155, allocations: 0.5 kB / 0.5911 GB, free: 14.43 MB / 446.1 MB Notification: Performance of Templates: time 0.005488/0.421, allocations: 1.587 MB / 0.5926 GB, free: 14.26 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)