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: "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002026/0.002026, allocations: 193 kB / 16.25 MB, free: 6.637 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.432/1.432, allocations: 222.9 MB / 239.9 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9907/0.9907, allocations: 135.1 MB / 425.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 60.12 kB / 0.505 GB, free: 5.547 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.178, allocations: 80.93 MB / 0.584 GB, free: 4.785 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.00318/0.1812, allocations: 1.686 MB / 0.5856 GB, free: 3.082 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009392/0.1821, allocations: 0.5417 MB / 0.5862 GB, free: 2.535 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001535/0.1823, allocations: 4 kB / 0.5862 GB, free: 2.531 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002306/0.1826, allocations: 23.8 kB / 0.5862 GB, free: 2.508 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000323/0.1829, allocations: 48.64 kB / 0.5862 GB, free: 2.461 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002573/0.1832, allocations: 63.92 kB / 0.5863 GB, free: 2.398 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002793/0.1835, allocations: 135.5 kB / 0.5864 GB, free: 2.266 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.1837, allocations: 41.48 kB / 0.5865 GB, free: 2.219 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001653/0.1839, allocations: 59.77 kB / 0.5865 GB, free: 2.16 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001564/0.184, allocations: 63.64 kB / 0.5866 GB, free: 2.098 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.852e-05/0.1841, allocations: 8 kB / 0.5866 GB, free: 2.09 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.683e-05/0.1842, allocations: 27.97 kB / 0.5866 GB, free: 2.062 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.466e-05/0.1843, allocations: 43.84 kB / 0.5867 GB, free: 2.02 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.58e-05/0.1843, allocations: 59.59 kB / 0.5867 GB, free: 1.961 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002342/0.1846, allocations: 143.7 kB / 0.5869 GB, free: 1.82 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1846, allocations: 0 / 0.5869 GB, free: 1.82 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1846, allocations: 0 / 0.5869 GB, free: 1.82 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.1846, allocations: 0 / 0.5869 GB, free: 1.82 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.0008254/0.1855, allocations: 466.6 kB / 0.5873 GB, free: 1.316 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.1855, allocations: 8.031 kB / 0.5873 GB, free: 1.309 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.159e-05/0.1856, allocations: 46.69 kB / 0.5874 GB, free: 1.254 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.772e-05/0.1856, allocations: 20.66 kB / 0.5874 GB, free: 1.234 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002882/0.1859, allocations: 228.9 kB / 0.5876 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.186, allocations: 8.375 kB / 0.5876 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.583e-05/0.186, allocations: 4.375 kB / 0.5876 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003228/0.1863, allocations: 113.7 kB / 0.5877 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.1863, allocations: 0 / 0.5877 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.1863, allocations: 4 kB / 0.5877 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.1864, allocations: 0 / 0.5877 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002244/0.1866, allocations: 66.81 kB / 0.5878 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006946/0.1873, allocations: 388.4 kB / 0.5882 GB, free: 356 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001348/0.1874, allocations: 42.55 kB / 0.5882 GB, free: 304 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.1875, allocations: 28.89 kB / 0.5882 GB, free: 272 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.569e-05/0.1876, allocations: 0 / 0.5882 GB, free: 272 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002681/0.1878, allocations: 105 kB / 0.5883 GB, free: 148 kB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.322e-06/0.1879, allocations: 4 kB / 0.5883 GB, free: 144 kB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003944/0.1883, allocations: 113.4 kB / 0.5884 GB, free: 24 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.402e-05/0.1883, allocations: 81.11 kB / 0.5885 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002397/0.1886, allocations: 256.9 kB / 0.5888 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.1886, allocations: 29.7 kB / 0.5888 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.087e-05/0.1887, allocations: 132 kB / 0.5889 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.702e-05/0.1887, allocations: 3.906 kB / 0.5889 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.83e-05/0.1887, allocations: 17.72 kB / 0.5889 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.1889, allocations: 322.8 kB / 0.5892 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/0.189, allocations: 27.91 kB / 0.5893 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001104/0.1891, allocations: 55.34 kB / 0.5893 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000192/0.1893, allocations: 74.45 kB / 0.5894 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1893, allocations: 0 / 0.5894 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002671/0.1896, allocations: 101.4 kB / 0.5895 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.1896, allocations: 10.17 kB / 0.5895 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.1896, allocations: 0 / 0.5895 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.1896, allocations: 7.938 kB / 0.5895 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.1897, allocations: 19.92 kB / 0.5895 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.1897, allocations: 0 / 0.5895 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.852e-05/0.1898, allocations: 15.89 kB / 0.5895 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.707e-06/0.1899, allocations: 4.094 kB / 0.5895 GB, free: 14.81 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.0001019/0.19, allocations: 129.8 kB / 0.5897 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.97e-05/0.19, allocations: 15.81 kB / 0.5897 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.373e-05/0.19, allocations: 17.47 kB / 0.5897 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.19, allocations: 4 kB / 0.5897 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.1901, allocations: 3.984 kB / 0.5897 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.1901, allocations: 3.984 kB / 0.5897 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001813/0.1902, allocations: 213.5 kB / 0.5899 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.1903, allocations: 0 / 0.5899 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.225e-05/0.1903, allocations: 19.98 kB / 0.5899 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.1904, allocations: 0 / 0.5899 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.1904, allocations: 3.938 kB / 0.5899 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1904, allocations: 4 kB / 0.5899 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1904, allocations: 0 / 0.5899 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002708/0.1907, allocations: 120.8 kB / 0.5901 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.624e-05/0.1907, allocations: 96.91 kB / 0.5901 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.533e-05/0.1907, allocations: 3.938 kB / 0.5901 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.802e-05/0.1908, allocations: 7.984 kB / 0.5902 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.366e-05/0.1909, allocations: 8 kB / 0.5902 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.337e-05/0.1909, allocations: 4 kB / 0.5902 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001591/0.1911, allocations: 188.5 kB / 0.5903 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1911, allocations: 0 / 0.5903 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002198/0.1913, allocations: 23.91 kB / 0.5904 GB, free: 13.86 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.0006534/0.192, allocations: 0.6825 MB / 0.591 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002646/0.1922, allocations: 59.88 kB / 0.5911 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.1922, allocations: 0 / 0.5911 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001086/0.1924, allocations: 31.91 kB / 0.5911 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.1927, allocations: 40.58 kB / 0.5912 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002077/0.1947, allocations: 1.762 MB / 0.5929 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.195, allocations: 0.7239 MB / 0.5936 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.657e-05/0.1951, allocations: 20.59 kB / 0.5936 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.541e-05/0.1952, allocations: 43.42 kB / 0.5937 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of SimCode: time 4.71e-07/0.1952, allocations: 0 / 0.5937 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0157/0.2109, allocations: 3.379 MB / 0.597 GB, free: 7.109 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004977/0.2115, allocations: 192 kB / 0.5971 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.867/2.079, allocations: 0 / 0.5971 GB, free: 6.855 MB / 0.4981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter.fmu > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)