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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00169/0.00169, allocations: 113.5 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002057/0.002057, allocations: 213 kB / 23.04 MB, free: 5.078 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.497/1.497, allocations: 230.6 MB / 256.8 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.849/0.849, allocations: 134 MB / 447.2 MB, free: 10.23 MB / 350.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IDEAS_IDEAS_Utilities_IO_Files_Examples_JSONWriter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IDEAS_IDEAS_Utilities_IO_Files_Examples_JSONWriter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 65.78 kB / 0.6193 GB, free: 7.234 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1808/0.1828, allocations: 85.91 MB / 0.7032 GB, free: 1.398 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.0031/0.1859, allocations: 1.671 MB / 0.7048 GB, free: 15.72 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001066/0.1869, allocations: 0.6194 MB / 0.7054 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.922e-05/0.187, allocations: 7.938 kB / 0.7054 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001588/0.1872, allocations: 31.78 kB / 0.7055 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002408/0.1874, allocations: 63.67 kB / 0.7055 GB, free: 14.99 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001912/0.1876, allocations: 79.84 kB / 0.7056 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002046/0.1878, allocations: 139.5 kB / 0.7057 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.1879, allocations: 37.83 kB / 0.7058 GB, free: 14.74 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001532/0.1881, allocations: 67.77 kB / 0.7058 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001241/0.1882, allocations: 67.64 kB / 0.7059 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.357e-05/0.1882, allocations: 8 kB / 0.7059 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.199e-05/0.1883, allocations: 31.97 kB / 0.7059 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.987e-05/0.1884, allocations: 39.84 kB / 0.706 GB, free: 14.53 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.403e-05/0.1885, allocations: 59.59 kB / 0.706 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002554/0.1887, allocations: 159.2 kB / 0.7062 GB, free: 14.31 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1887, allocations: 0 / 0.7062 GB, free: 14.31 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.502e-06/0.1887, allocations: 0 / 0.7062 GB, free: 14.31 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.224e-06/0.1887, allocations: 0 / 0.7062 GB, free: 14.31 MB / 0.5294 GB 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.0006456/0.1894, allocations: 397.3 kB / 0.7066 GB, free: 13.89 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.1894, allocations: 12.03 kB / 0.7066 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.598e-05/0.1894, allocations: 4.188 kB / 0.7066 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.781e-05/0.1895, allocations: 42.73 kB / 0.7066 GB, free: 13.83 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001623/0.1897, allocations: 28.78 kB / 0.7066 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003437/0.19, allocations: 194 kB / 0.7068 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.19, allocations: 384 / 0.7068 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.653e-05/0.19, allocations: 8.375 kB / 0.7068 GB, free: 13.58 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003063/0.1903, allocations: 109.6 kB / 0.7069 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.1903, allocations: 0 / 0.7069 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.1904, allocations: 0 / 0.7069 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.1904, allocations: 4 kB / 0.707 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002408/0.1906, allocations: 67.88 kB / 0.707 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006286/0.1912, allocations: 347.6 kB / 0.7073 GB, free: 13.01 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001524/0.1914, allocations: 42.5 kB / 0.7074 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.1915, allocations: 32.89 kB / 0.7074 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.816e-05/0.1915, allocations: 0 / 0.7074 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002466/0.1918, allocations: 97.08 kB / 0.7075 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 8.92e-07/0.1918, allocations: 0 / 0.7075 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0004822/0.1922, allocations: 129.4 kB / 0.7076 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.333e-05/0.1923, allocations: 81.11 kB / 0.7077 GB, free: 12.58 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003007/0.1926, allocations: 256.9 kB / 0.708 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.73e-05/0.1926, allocations: 29.7 kB / 0.708 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 9.03e-05/0.1927, allocations: 120.1 kB / 0.7081 GB, free: 12.17 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.275e-05/0.1928, allocations: 7.906 kB / 0.7081 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.162e-05/0.1928, allocations: 21.7 kB / 0.7081 GB, free: 12.13 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001519/0.193, allocations: 326.8 kB / 0.7084 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/0.1931, allocations: 27.97 kB / 0.7085 GB, free: 11.78 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.1932, allocations: 47.41 kB / 0.7085 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002184/0.1934, allocations: 70.5 kB / 0.7086 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1934, allocations: 3.938 kB / 0.7086 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002949/0.1937, allocations: 101.5 kB / 0.7087 GB, free: 11.53 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.1937, allocations: 12.09 kB / 0.7087 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.1937, allocations: 3.938 kB / 0.7087 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.1937, allocations: 3.938 kB / 0.7087 GB, free: 11.51 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.1939, allocations: 12.27 kB / 0.7087 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.1939, allocations: 0 / 0.7087 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.985e-05/0.194, allocations: 15.92 kB / 0.7087 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.194, allocations: 4 kB / 0.7087 GB, free: 11.48 MB / 0.5294 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.0001162/0.1941, allocations: 126.5 kB / 0.7089 GB, free: 11.35 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.438e-05/0.1941, allocations: 27.84 kB / 0.7089 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.775e-05/0.1941, allocations: 25.27 kB / 0.7089 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1942, allocations: 3.938 kB / 0.7089 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1942, allocations: 0 / 0.7089 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.1942, allocations: 0 / 0.7089 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001839/0.1943, allocations: 188.7 kB / 0.7091 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1943, allocations: 0 / 0.7091 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.138e-05/0.1944, allocations: 15.98 kB / 0.7091 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.99e-06/0.1944, allocations: 4 kB / 0.7091 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.1944, allocations: 3.938 kB / 0.7091 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.103e-06/0.1944, allocations: 4 kB / 0.7091 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1944, allocations: 0 / 0.7091 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000298/0.1947, allocations: 117 kB / 0.7092 GB, free: 10.91 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 2.612e-05/0.1948, allocations: 15.86 kB / 0.7092 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.914e-05/0.1948, allocations: 7.938 kB / 0.7092 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.232e-05/0.1949, allocations: 11.98 kB / 0.7093 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.953e-05/0.1949, allocations: 11.98 kB / 0.7093 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.476e-05/0.1949, allocations: 4 kB / 0.7093 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001958/0.1951, allocations: 192.4 kB / 0.7095 GB, free: 10.67 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8e-08/0.1951, allocations: 0 / 0.7095 GB, free: 10.67 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002272/0.1954, allocations: 20 kB / 0.7095 GB, free: 10.65 MB / 0.5294 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.000765/0.1961, allocations: 0.6877 MB / 0.7101 GB, free: 9.938 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0003139/0.1965, allocations: 59.88 kB / 0.7102 GB, free: 9.879 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1965, allocations: 0 / 0.7102 GB, free: 9.879 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001151/0.1966, allocations: 27.97 kB / 0.7102 GB, free: 9.852 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003102/0.1969, allocations: 44.64 kB / 0.7103 GB, free: 9.812 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002387/0.1993, allocations: 1.769 MB / 0.712 GB, free: 7.938 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005168/0.1998, allocations: 0.7312 MB / 0.7127 GB, free: 7.18 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 7.295e-05/0.1999, allocations: 12.48 kB / 0.7127 GB, free: 7.168 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.675e-05/0.1999, allocations: 47.41 kB / 0.7128 GB, free: 7.121 MB / 0.5294 GB Notification: Performance of SimCode: time 5.31e-07/0.1999, allocations: 0 / 0.7128 GB, free: 7.121 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02551/0.2255, allocations: 3.779 MB / 0.7165 GB, free: 3.504 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.28, allocations: 11.05 kB / 0.7165 GB, free: 3.496 MB / 0.5294 GB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_IO_Files_Examples_JSONWriter.fmu > IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.993724647909403] Failed to read output from testmodel.py, exit status != 0: 11.457516039023176 11.483028276 11.290978856 Calling exit ...