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.001366/0.001366, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001463/0.001463, allocations: 220.7 kB / 23.03 MB, free: 4.945 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.499/1.499, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.8809/0.8809, allocations: 134 MB / 447.2 MB, free: 9.949 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.002786/0.002786, allocations: 66.14 kB / 0.6192 GB, free: 6.926 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1864/0.1892, allocations: 85.91 MB / 0.7031 GB, free: 1.109 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003248/0.1924, allocations: 1.63 MB / 0.7047 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001158/0.1936, allocations: 0.5844 MB / 0.7053 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.458e-05/0.1937, allocations: 3.938 kB / 0.7053 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001632/0.1939, allocations: 27.8 kB / 0.7053 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002697/0.1941, allocations: 65.73 kB / 0.7054 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002245/0.1944, allocations: 79.84 kB / 0.7055 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002166/0.1946, allocations: 139.6 kB / 0.7056 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.1947, allocations: 41.86 kB / 0.7056 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001663/0.1949, allocations: 55.78 kB / 0.7057 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.195, allocations: 71.62 kB / 0.7057 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.627e-05/0.195, allocations: 8 kB / 0.7058 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.681e-05/0.1951, allocations: 27.98 kB / 0.7058 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.709e-05/0.1952, allocations: 47.83 kB / 0.7058 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 5.733e-05/0.1953, allocations: 39.73 kB / 0.7059 GB, free: 14.28 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002367/0.1955, allocations: 159.2 kB / 0.706 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1955, allocations: 8 kB / 0.706 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.042e-06/0.1955, allocations: 0 / 0.706 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5e-06/0.1955, allocations: 3.938 kB / 0.706 GB, free: 14.11 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.0006193/0.1961, allocations: 397.3 kB / 0.7064 GB, free: 13.69 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.1962, allocations: 8.031 kB / 0.7064 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.897e-05/0.1962, allocations: 8.125 kB / 0.7064 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.014e-05/0.1962, allocations: 38.75 kB / 0.7065 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000162/0.1964, allocations: 28.78 kB / 0.7065 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003186/0.1967, allocations: 186.1 kB / 0.7067 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.1967, allocations: 8.375 kB / 0.7067 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.421e-05/0.1967, allocations: 4.375 kB / 0.7067 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003147/0.197, allocations: 164.5 kB / 0.7068 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.1971, allocations: 0 / 0.7068 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.1971, allocations: 4 kB / 0.7068 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.1971, allocations: 4 kB / 0.7068 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002449/0.1973, allocations: 59.94 kB / 0.7069 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005811/0.1979, allocations: 343.6 kB / 0.7072 GB, free: 12.76 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001393/0.198, allocations: 46.48 kB / 0.7073 GB, free: 12.71 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.1981, allocations: 28.89 kB / 0.7073 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.526e-05/0.1982, allocations: 0 / 0.7073 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002565/0.1984, allocations: 148.5 kB / 0.7074 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.1984, allocations: 0 / 0.7074 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.000435/0.1988, allocations: 125.4 kB / 0.7076 GB, free: 12.37 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.731e-05/0.1989, allocations: 81.11 kB / 0.7076 GB, free: 12.27 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002742/0.1992, allocations: 256.9 kB / 0.7079 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.178e-05/0.1992, allocations: 25.7 kB / 0.7079 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 9.362e-05/0.1993, allocations: 132.1 kB / 0.708 GB, free: 11.85 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.11e-05/0.1993, allocations: 11.91 kB / 0.708 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.007e-05/0.1994, allocations: 13.72 kB / 0.7081 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001442/0.1995, allocations: 326.8 kB / 0.7084 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.1996, allocations: 23.97 kB / 0.7084 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001384/0.1998, allocations: 81.23 kB / 0.7085 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002151/0.2, allocations: 74.48 kB / 0.7085 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.2, allocations: 0 / 0.7085 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002843/0.2003, allocations: 97.59 kB / 0.7086 GB, free: 11.19 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.2003, allocations: 11.98 kB / 0.7086 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.2003, allocations: 12.02 kB / 0.7087 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.2003, allocations: 0 / 0.7087 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.2004, allocations: 11.98 kB / 0.7087 GB, free: 11.15 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.2004, allocations: 0 / 0.7087 GB, free: 11.15 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.156e-05/0.2005, allocations: 15.92 kB / 0.7087 GB, free: 11.14 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.749e-06/0.2005, allocations: 4 kB / 0.7087 GB, free: 11.13 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.0001077/0.2006, allocations: 125.8 kB / 0.7088 GB, free: 11 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.617e-05/0.2006, allocations: 19.86 kB / 0.7088 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.665e-05/0.2007, allocations: 25.22 kB / 0.7088 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.2007, allocations: 7.984 kB / 0.7089 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.2007, allocations: 3.938 kB / 0.7089 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.2007, allocations: 0 / 0.7089 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001715/0.2009, allocations: 172.7 kB / 0.709 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2009, allocations: 0 / 0.709 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.907e-05/0.201, allocations: 15.98 kB / 0.709 GB, free: 10.72 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.201, allocations: 0 / 0.709 GB, free: 10.72 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.201, allocations: 7.938 kB / 0.709 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.201, allocations: 0 / 0.709 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.201, allocations: 0 / 0.709 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003056/0.2013, allocations: 125 kB / 0.7092 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 2.518e-05/0.2013, allocations: 15.86 kB / 0.7092 GB, free: 10.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.419e-05/0.2013, allocations: 3.938 kB / 0.7092 GB, free: 10.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.385e-05/0.2014, allocations: 7.984 kB / 0.7092 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.806e-05/0.2014, allocations: 11.98 kB / 0.7092 GB, free: 10.53 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.185e-05/0.2015, allocations: 4 kB / 0.7092 GB, free: 10.53 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001932/0.2017, allocations: 188.5 kB / 0.7094 GB, free: 10.35 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.2017, allocations: 3.938 kB / 0.7094 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002268/0.2019, allocations: 28 kB / 0.7094 GB, free: 10.32 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.0007814/0.2027, allocations: 0.6796 MB / 0.7101 GB, free: 9.613 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00028/0.203, allocations: 63.88 kB / 0.7101 GB, free: 9.551 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.203, allocations: 3.938 kB / 0.7101 GB, free: 9.547 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.2031, allocations: 27.97 kB / 0.7102 GB, free: 9.52 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002907/0.2034, allocations: 38.47 kB / 0.7102 GB, free: 9.48 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/0.2057, allocations: 1.761 MB / 0.7119 GB, free: 7.613 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001033/0.2058, allocations: 113.9 kB / 0.712 GB, free: 7.484 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 7.09e-05/0.2059, allocations: 20.48 kB / 0.7121 GB, free: 7.465 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.438e-05/0.2059, allocations: 47.41 kB / 0.7121 GB, free: 7.418 MB / 0.5294 GB Notification: Performance of SimCode: time 2.6e-07/0.2059, allocations: 0 / 0.7121 GB, free: 7.418 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02663/0.2326, allocations: 3.896 MB / 0.7159 GB, free: 3.695 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.43, allocations: 14.27 kB / 0.7159 GB, free: 3.684 MB / 0.5294 GB " [Timeout remaining time 648] (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: 15.232318034977652] Failed to read output from testmodel.py, exit status != 0: 11.628349254024215 11.654626278 11.454808412 Calling exit ...