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.001399/0.001399, allocations: 77.31 kB / 19.76 MB, free: 2.047 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.0015/0.0015, allocations: 156.8 kB / 23 MB, free: 4.941 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.494/1.494, allocations: 177.2 MB / 203.4 MB, free: 9.285 MB / 190.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.8434/0.8434, allocations: 101.3 MB / 361.1 MB, free: 10.09 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [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: translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter") [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.002369/0.002369, allocations: 68.39 kB / 0.5356 GB, free: 5.535 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. Notification: Performance of FrontEnd - Absyn->SCode: time 0.1862/0.1886, allocations: 85.88 MB / 0.6195 GB, free: 1.891 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003605/0.1922, allocations: 1.641 MB / 0.6211 GB, free: 244 kB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001238/0.1934, allocations: 0.5728 MB / 0.6216 GB, free: 15.66 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.469e-05/0.1935, allocations: 7.938 kB / 0.6216 GB, free: 15.65 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0003119/0.1938, allocations: 35.77 kB / 0.6217 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0003197/0.1942, allocations: 59.69 kB / 0.6217 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002449/0.1944, allocations: 83.83 kB / 0.6218 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002596/0.1947, allocations: 143.5 kB / 0.622 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001835/0.1948, allocations: 25.67 kB / 0.622 GB, free: 15.31 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002488/0.1951, allocations: 83.73 kB / 0.6221 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002528/0.1953, allocations: 63.69 kB / 0.6221 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.069e-05/0.1954, allocations: 8 kB / 0.6221 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 8.285e-05/0.1955, allocations: 24 kB / 0.6221 GB, free: 15.13 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.1956, allocations: 47.81 kB / 0.6222 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.412e-05/0.1957, allocations: 47.67 kB / 0.6222 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002862/0.1959, allocations: 155.2 kB / 0.6224 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.1959, allocations: 11.94 kB / 0.6224 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.325e-06/0.1959, allocations: 0 / 0.6224 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.133e-06/0.196, allocations: 0 / 0.6224 GB, free: 14.88 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.0007126/0.1967, allocations: 393.3 kB / 0.6228 GB, free: 14.46 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.1967, allocations: 8.031 kB / 0.6228 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001925/0.1969, allocations: 40.78 kB / 0.6228 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003646/0.1973, allocations: 186.1 kB / 0.623 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.1973, allocations: 8.312 kB / 0.623 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.701e-05/0.1973, allocations: 8.375 kB / 0.623 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003442/0.1976, allocations: 160.7 kB / 0.6232 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.1976, allocations: 0 / 0.6232 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.048e-05/0.1977, allocations: 7.938 kB / 0.6232 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.369e-06/0.1977, allocations: 0 / 0.6232 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002352/0.198, allocations: 67.88 kB / 0.6232 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005879/0.1986, allocations: 300.4 kB / 0.6235 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000158/0.1987, allocations: 46.48 kB / 0.6236 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002354/0.1989, allocations: 28.89 kB / 0.6236 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.179e-05/0.199, allocations: 0 / 0.6236 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002794/0.1992, allocations: 152.5 kB / 0.6237 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.1993, allocations: 0 / 0.6237 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0004859/0.1997, allocations: 125.4 kB / 0.6239 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.215e-05/0.1998, allocations: 81.05 kB / 0.6239 GB, free: 13.13 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003441/0.2002, allocations: 240.1 kB / 0.6242 GB, free: 12.89 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.283e-05/0.2002, allocations: 25.7 kB / 0.6242 GB, free: 12.86 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.000183/0.2004, allocations: 132.1 kB / 0.6243 GB, free: 12.72 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 3.37e-05/0.2004, allocations: 19.83 kB / 0.6243 GB, free: 12.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.316e-05/0.2004, allocations: 17.72 kB / 0.6244 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0004164/0.2009, allocations: 326.8 kB / 0.6247 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001133/0.201, allocations: 19.98 kB / 0.6247 GB, free: 12.33 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001524/0.2011, allocations: 77.11 kB / 0.6248 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002315/0.2013, allocations: 74.48 kB / 0.6248 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.2014, allocations: 0 / 0.6248 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003544/0.2017, allocations: 101.5 kB / 0.6249 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.2017, allocations: 10.19 kB / 0.6249 GB, free: 12.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.2017, allocations: 0 / 0.6249 GB, free: 12.04 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.2018, allocations: 0 / 0.6249 GB, free: 12.04 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.2019, allocations: 16.08 kB / 0.625 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.2019, allocations: 3.938 kB / 0.625 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.119e-05/0.202, allocations: 11.98 kB / 0.625 GB, free: 12.01 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-06/0.202, allocations: 0 / 0.625 GB, free: 12.01 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.0001473/0.2021, allocations: 133.8 kB / 0.6251 GB, free: 11.87 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.068e-05/0.2022, allocations: 15.91 kB / 0.6251 GB, free: 11.86 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.925e-05/0.2022, allocations: 17.02 kB / 0.6251 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.2022, allocations: 0 / 0.6251 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.2022, allocations: 7.938 kB / 0.6251 GB, free: 11.83 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.2022, allocations: 4 kB / 0.6251 GB, free: 11.83 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001696/0.2024, allocations: 149.2 kB / 0.6253 GB, free: 11.65 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.2024, allocations: 0 / 0.6253 GB, free: 11.65 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.11e-05/0.2025, allocations: 11.98 kB / 0.6253 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.2025, allocations: 3.938 kB / 0.6253 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.428e-06/0.2025, allocations: 3.984 kB / 0.6253 GB, free: 11.63 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.2025, allocations: 0 / 0.6253 GB, free: 11.63 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.2025, allocations: 4 kB / 0.6253 GB, free: 11.63 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003104/0.2028, allocations: 132.9 kB / 0.6254 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 1.777e-05/0.2028, allocations: 7.953 kB / 0.6254 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.374e-05/0.2028, allocations: 4 kB / 0.6254 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.944e-05/0.2029, allocations: 7.984 kB / 0.6254 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.819e-05/0.203, allocations: 15.86 kB / 0.6255 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.723e-05/0.203, allocations: 8 kB / 0.6255 GB, free: 11.44 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001689/0.2032, allocations: 173.6 kB / 0.6256 GB, free: 11.27 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.1e-08/0.2032, allocations: 0 / 0.6256 GB, free: 11.27 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002286/0.2034, allocations: 31.89 kB / 0.6257 GB, free: 11.24 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.0002593/0.2036, allocations: 110.6 kB / 0.6258 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0003017/0.2039, allocations: 59.92 kB / 0.6258 GB, free: 11.06 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.204, allocations: 192 / 0.6258 GB, free: 11.06 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001177/0.2041, allocations: 31.91 kB / 0.6259 GB, free: 11.03 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.2044, allocations: 38.45 kB / 0.6259 GB, free: 10.99 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006915/0.2051, allocations: 300.5 kB / 0.6262 GB, free: 10.67 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000128/0.2052, allocations: 106.2 kB / 0.6263 GB, free: 10.55 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 6.688e-05/0.2053, allocations: 20.42 kB / 0.6263 GB, free: 10.52 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.2054, allocations: 16.5 kB / 0.6263 GB, free: 10.51 MB / 0.5294 GB Notification: Performance of SimCode: time 2.81e-07/0.2054, allocations: 0 / 0.6263 GB, free: 10.51 MB / 0.5294 GB Notification: Performance of Templates: time 0.005681/0.2111, allocations: 1.735 MB / 0.628 GB, free: 8.805 MB / 0.5294 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 660] (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 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.665809944272041] Failed to read output from testmodel.py, exit status != 0: 0.21996248699724674 0.23564157400000002 0.036538689 Calling exit ...