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.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.001009/0.001009, allocations: 92.2 kB / 20.19 MB, free: 4.359 MB / 18.57 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.0008939/0.0008939, allocations: 173 kB / 23.49 MB, free: 1.059 MB / 18.57 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.117/1.117, allocations: 177.1 MB / 203.8 MB, free: 5.652 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-535:34:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-535:42:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.8145/0.8145, allocations: 154.8 MB / 415.1 MB, free: 0.5039 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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 master/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.415e-06/2.415e-06, allocations: 0 / 0.5205 GB, free: 1.234 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.054e-05/3.295e-05, allocations: 2.312 kB / 0.5205 GB, free: 1.23 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002347/0.00238, allocations: 1.699 MB / 0.5222 GB, free: 15.55 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007962/0.003176, allocations: 0.5941 MB / 0.5228 GB, free: 14.95 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.515e-05/0.003262, allocations: 4 kB / 0.5228 GB, free: 14.95 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001857/0.003447, allocations: 29.08 kB / 0.5228 GB, free: 14.92 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002184/0.003666, allocations: 67.61 kB / 0.5229 GB, free: 14.85 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001776/0.003843, allocations: 72.62 kB / 0.5229 GB, free: 14.78 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001671/0.00401, allocations: 143.5 kB / 0.5231 GB, free: 14.64 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.004157, allocations: 35.44 kB / 0.5231 GB, free: 14.61 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001739/0.00433, allocations: 79.8 kB / 0.5232 GB, free: 14.53 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.795e-05/0.004418, allocations: 51.81 kB / 0.5232 GB, free: 14.48 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.555e-05/0.004444, allocations: 8 kB / 0.5232 GB, free: 14.47 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.242e-05/0.004506, allocations: 33.98 kB / 0.5233 GB, free: 14.44 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001641/0.00467, allocations: 43.83 kB / 0.5233 GB, free: 14.39 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 4.556e-05/0.004716, allocations: 31.92 kB / 0.5234 GB, free: 14.36 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001825/0.004898, allocations: 119.5 kB / 0.5235 GB, free: 14.25 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.004901, allocations: 0 / 0.5235 GB, free: 14.25 MB / 458.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.004902, allocations: 1.469 kB / 0.5235 GB, free: 14.25 MB / 458.7 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.004907, allocations: 0 / 0.5235 GB, free: 14.25 MB / 458.7 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.0005209/0.005428, allocations: 495.6 kB / 0.5239 GB, free: 13.73 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.005469, allocations: 9 kB / 0.5239 GB, free: 13.72 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001525/0.005622, allocations: 32.78 kB / 0.524 GB, free: 13.69 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002382/0.00586, allocations: 197.9 kB / 0.5242 GB, free: 13.47 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.005872, allocations: 8.312 kB / 0.5242 GB, free: 13.46 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.419e-05/0.005886, allocations: 8.375 kB / 0.5242 GB, free: 13.45 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001904/0.006077, allocations: 135.3 kB / 0.5243 GB, free: 13.3 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.006085, allocations: 192 / 0.5243 GB, free: 13.3 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.006098, allocations: 5.219 kB / 0.5243 GB, free: 13.3 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.006109, allocations: 7.938 kB / 0.5243 GB, free: 13.29 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.793e-05/0.006147, allocations: 12.48 kB / 0.5243 GB, free: 13.28 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004052/0.006552, allocations: 360.3 kB / 0.5247 GB, free: 12.89 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.819e-05/0.0066, allocations: 27.05 kB / 0.5247 GB, free: 12.85 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.401e-05/0.006624, allocations: 12.97 kB / 0.5247 GB, free: 12.84 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.289e-05/0.006637, allocations: 0 / 0.5247 GB, free: 12.84 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001267/0.006764, allocations: 135.8 kB / 0.5249 GB, free: 12.67 MB / 458.7 MB Notification: Performance of pre-optimization done (n=3): time 6.51e-07/0.006764, allocations: 0.5 kB / 0.5249 GB, free: 12.67 MB / 458.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001611/0.006926, allocations: 59.38 kB / 0.5249 GB, free: 12.61 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.78e-05/0.006963, allocations: 77.11 kB / 0.525 GB, free: 12.51 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001595/0.007123, allocations: 262.7 kB / 0.5252 GB, free: 12.24 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.007135, allocations: 33.69 kB / 0.5253 GB, free: 12.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.834e-05/0.007203, allocations: 174.8 kB / 0.5254 GB, free: 12.02 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.19e-05/0.007225, allocations: 17.56 kB / 0.5254 GB, free: 12.01 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.915e-05/0.007254, allocations: 23.36 kB / 0.5255 GB, free: 11.98 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.007372, allocations: 0.504 MB / 0.526 GB, free: 11.46 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.786e-05/0.00739, allocations: 0 / 0.526 GB, free: 11.46 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.089e-05/0.007431, allocations: 69.91 kB / 0.526 GB, free: 11.37 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.399e-05/0.007475, allocations: 35 kB / 0.5261 GB, free: 11.32 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.007477, allocations: 0.75 kB / 0.5261 GB, free: 11.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.521e-05/0.007552, allocations: 63.02 kB / 0.5261 GB, free: 11.26 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.007567, allocations: 11.98 kB / 0.5261 GB, free: 11.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.007571, allocations: 0 / 0.5261 GB, free: 11.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.007584, allocations: 1.344 kB / 0.5261 GB, free: 11.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.875e-05/0.007653, allocations: 8 kB / 0.5261 GB, free: 11.24 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.007658, allocations: 0 / 0.5261 GB, free: 11.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.432e-05/0.007692, allocations: 8.672 kB / 0.5262 GB, free: 11.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.0077, allocations: 7.938 kB / 0.5262 GB, free: 11.22 MB / 458.7 MB 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 7.229e-05/0.007773, allocations: 161.4 kB / 0.5263 GB, free: 11.05 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.791e-05/0.00779, allocations: 19.84 kB / 0.5263 GB, free: 11.04 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.982e-05/0.00782, allocations: 18.17 kB / 0.5263 GB, free: 11.02 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.007822, allocations: 0 / 0.5263 GB, free: 11.02 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.007826, allocations: 0 / 0.5263 GB, free: 11.02 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.007829, allocations: 2.812 kB / 0.5264 GB, free: 11.02 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001057/0.007935, allocations: 164.5 kB / 0.5265 GB, free: 10.82 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.007936, allocations: 3.984 kB / 0.5265 GB, free: 10.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.761e-05/0.007964, allocations: 8 kB / 0.5265 GB, free: 10.81 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.007965, allocations: 3.938 kB / 0.5265 GB, free: 10.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.007972, allocations: 0 / 0.5265 GB, free: 10.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.007973, allocations: 0 / 0.5265 GB, free: 10.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.007974, allocations: 2.75 kB / 0.5265 GB, free: 10.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.938e-05/0.008063, allocations: 100.2 kB / 0.5266 GB, free: 10.68 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.279e-05/0.008076, allocations: 15.89 kB / 0.5266 GB, free: 10.67 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.466e-05/0.00809, allocations: 0 / 0.5266 GB, free: 10.67 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.056e-05/0.008121, allocations: 4 kB / 0.5266 GB, free: 10.66 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.043e-05/0.008161, allocations: 7.984 kB / 0.5266 GB, free: 10.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.841e-05/0.00818, allocations: 8 kB / 0.5267 GB, free: 10.65 MB / 458.7 MB Notification: Performance of sorting global known variables: time 9.364e-05/0.008273, allocations: 194.3 kB / 0.5268 GB, free: 10.46 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.008273, allocations: 0 / 0.5268 GB, free: 10.46 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0001462/0.00842, allocations: 19.94 kB / 0.5269 GB, free: 10.44 MB / 458.7 MB 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.0001927/0.008612, allocations: 120.7 kB / 0.527 GB, free: 10.32 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001007/0.008713, allocations: 28.05 kB / 0.527 GB, free: 10.29 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.008715, allocations: 0 / 0.527 GB, free: 10.29 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 2.317e-05/0.008738, allocations: 17.17 kB / 0.527 GB, free: 10.27 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002134/0.008951, allocations: 43.97 kB / 0.5271 GB, free: 10.23 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006044/0.009556, allocations: 284.4 kB / 0.5273 GB, free: 9.922 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.887e-05/0.009595, allocations: 67.33 kB / 0.5274 GB, free: 9.836 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 4.697e-05/0.009642, allocations: 16.47 kB / 0.5274 GB, free: 9.816 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.314e-05/0.009675, allocations: 19.25 kB / 0.5274 GB, free: 9.801 MB / 458.7 MB Notification: Performance of SimCode: time 6.91e-07/0.009675, allocations: 0 / 0.5274 GB, free: 9.801 MB / 458.7 MB Notification: Performance of Templates: time 0.003832/0.01351, allocations: 1.788 MB / 0.5292 GB, free: 8.145 MB / 458.7 MB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 660] (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=240 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.8280508739408106]