Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.001322/0.001322, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001354/0.001355, allocations: 199.7 kB / 16.54 MB, free: 6.672 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.368/1.368, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9816/0.9816, allocations: 135.1 MB / 425.5 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002088/0.002088, allocations: 60.12 kB / 0.5053 GB, free: 5.32 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1804/0.1825, allocations: 80.93 MB / 0.5844 GB, free: 4.547 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.004053/0.1866, allocations: 1.635 MB / 0.586 GB, free: 2.898 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009594/0.1876, allocations: 0.5417 MB / 0.5865 GB, free: 2.352 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.942e-05/0.1877, allocations: 4 kB / 0.5865 GB, free: 2.348 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001829/0.1879, allocations: 19.8 kB / 0.5865 GB, free: 2.328 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002709/0.1882, allocations: 63.67 kB / 0.5866 GB, free: 2.266 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000165/0.1884, allocations: 67.86 kB / 0.5866 GB, free: 2.199 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001886/0.1886, allocations: 131.6 kB / 0.5868 GB, free: 2.07 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001616/0.1888, allocations: 45.47 kB / 0.5868 GB, free: 2.02 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.1889, allocations: 59.7 kB / 0.5869 GB, free: 1.961 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001092/0.189, allocations: 75.62 kB / 0.5869 GB, free: 1.887 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.777e-05/0.1891, allocations: 8 kB / 0.5869 GB, free: 1.879 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.343e-05/0.1891, allocations: 16 kB / 0.587 GB, free: 1.863 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.594e-05/0.1892, allocations: 51.77 kB / 0.587 GB, free: 1.812 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.837e-05/0.1893, allocations: 59.59 kB / 0.5871 GB, free: 1.754 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002054/0.1895, allocations: 139.7 kB / 0.5872 GB, free: 1.617 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1895, allocations: 0 / 0.5872 GB, free: 1.617 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1896, allocations: 0 / 0.5872 GB, free: 1.617 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.1896, allocations: 0 / 0.5872 GB, free: 1.617 MB / 494.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.0006318/0.1902, allocations: 474.6 kB / 0.5877 GB, free: 1.105 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.132e-05/0.1902, allocations: 8.031 kB / 0.5877 GB, free: 1.098 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.15e-05/0.1903, allocations: 20.66 kB / 0.5877 GB, free: 1.078 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002301/0.1905, allocations: 228.8 kB / 0.5879 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.187e-06/0.1905, allocations: 4.375 kB / 0.5879 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.558e-05/0.1906, allocations: 8.375 kB / 0.5879 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002705/0.1908, allocations: 109.1 kB / 0.588 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.954e-06/0.1909, allocations: 4 kB / 0.588 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.1909, allocations: 4 kB / 0.588 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.1909, allocations: 4 kB / 0.588 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002287/0.1911, allocations: 59.88 kB / 0.5881 GB, free: 0.625 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005914/0.1917, allocations: 388.4 kB / 0.5885 GB, free: 200 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001343/0.1919, allocations: 42.5 kB / 0.5885 GB, free: 148 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/0.192, allocations: 32.88 kB / 0.5885 GB, free: 112 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.617e-05/0.192, allocations: 0 / 0.5885 GB, free: 112 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002921/0.1923, allocations: 101.1 kB / 0.5886 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.1923, allocations: 0 / 0.5886 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004264/0.1928, allocations: 125.3 kB / 0.5887 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.1928, allocations: 81.11 kB / 0.5888 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002359/0.1931, allocations: 249 kB / 0.5891 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.1931, allocations: 29.7 kB / 0.5891 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.301e-05/0.1932, allocations: 136 kB / 0.5892 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.581e-05/0.1932, allocations: 3.906 kB / 0.5892 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.394e-05/0.1932, allocations: 13.72 kB / 0.5892 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001274/0.1934, allocations: 330.8 kB / 0.5895 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.1935, allocations: 23.98 kB / 0.5896 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001198/0.1936, allocations: 51.41 kB / 0.5896 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002195/0.1938, allocations: 70.45 kB / 0.5897 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.1938, allocations: 4.031 kB / 0.5897 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002744/0.1941, allocations: 105.3 kB / 0.5898 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.1941, allocations: 4 kB / 0.5898 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1942, allocations: 4 kB / 0.5898 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.1942, allocations: 3.938 kB / 0.5898 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.1943, allocations: 15.92 kB / 0.5898 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.618e-06/0.1943, allocations: 4.094 kB / 0.5898 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.005e-05/0.1944, allocations: 15.89 kB / 0.5898 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.1944, allocations: 0 / 0.5898 GB, free: 14.66 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.0001006/0.1945, allocations: 129.8 kB / 0.59 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.195e-05/0.1946, allocations: 15.81 kB / 0.59 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.381e-05/0.1946, allocations: 25.17 kB / 0.59 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.175e-06/0.1946, allocations: 7.938 kB / 0.59 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.1946, allocations: 0 / 0.59 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.1946, allocations: 0 / 0.59 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001634/0.1948, allocations: 213.6 kB / 0.5902 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.1948, allocations: 0 / 0.5902 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.984e-05/0.1949, allocations: 11.98 kB / 0.5902 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1949, allocations: 0 / 0.5902 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.1949, allocations: 4 kB / 0.5902 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.1949, allocations: 3.938 kB / 0.5902 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1949, allocations: 3.984 kB / 0.5902 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002874/0.1952, allocations: 124.9 kB / 0.5904 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.373e-05/0.1953, allocations: 92.86 kB / 0.5904 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.163e-05/0.1953, allocations: 0 / 0.5904 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.425e-05/0.1954, allocations: 11.92 kB / 0.5905 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.048e-05/0.1954, allocations: 7.984 kB / 0.5905 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-05/0.1955, allocations: 4 kB / 0.5905 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001696/0.1956, allocations: 196.4 kB / 0.5907 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.81e-07/0.1956, allocations: 4 kB / 0.5907 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00022/0.1959, allocations: 19.91 kB / 0.5907 GB, free: 13.7 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.0001987/0.1961, allocations: 125.8 kB / 0.5908 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002819/0.1964, allocations: 55.94 kB / 0.5908 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.1964, allocations: 7.938 kB / 0.5909 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001143/0.1965, allocations: 31.91 kB / 0.5909 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002747/0.1968, allocations: 37.53 kB / 0.5909 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004683/0.1972, allocations: 284.3 kB / 0.5912 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002641/0.1975, allocations: 0.7197 MB / 0.5919 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.807e-05/0.1976, allocations: 12.55 kB / 0.5919 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.473e-05/0.1976, allocations: 23.42 kB / 0.5919 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1976, allocations: 0 / 0.5919 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of Templates: time 0.004452/0.2021, allocations: 1.765 MB / 0.5937 GB, free: 10.64 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.sim & ./IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)