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.001067/0.001067, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001184/0.002251, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0008337/0.0008337, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009963/0.00183, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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 0.9645/0.9645, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09335/1.058, allocations: 53.66 MB / 243.2 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0-master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0-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 4.0.0-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 4.0.0-master/package.mo): time 0.798/0.798, allocations: 155.3 MB / 399.2 MB, free: 15.93 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0-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 4.0.0-master/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 NFInstanceAPI.mkTop(): time 0.2704/1.068, allocations: 49.13 MB / 448.4 MB, free: 6.012 MB / 426.7 MB " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0-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 1.343e-06/1.343e-06, allocations: 0 / 449.7 MB, free: 4.762 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.002e-05/2.136e-05, allocations: 3.438 kB / 449.7 MB, free: 4.758 MB / 426.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002206/0.002228, allocations: 1.737 MB / 451.4 MB, free: 3.043 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.000851/0.003079, allocations: 0.613 MB / 452 MB, free: 2.434 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.225e-05/0.003171, allocations: 8.594 kB / 452 MB, free: 2.426 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001198/0.003291, allocations: 24.67 kB / 452 MB, free: 2.402 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001743/0.003465, allocations: 63.42 kB / 452.1 MB, free: 2.352 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001805/0.003646, allocations: 75.77 kB / 452.2 MB, free: 2.277 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001696/0.003815, allocations: 139.1 kB / 452.3 MB, free: 2.152 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.003945, allocations: 47.59 kB / 452.4 MB, free: 2.105 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001882/0.004133, allocations: 100.2 kB / 452.5 MB, free: 2.012 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.299e-05/0.004226, allocations: 43.89 kB / 452.5 MB, free: 1.969 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.528e-05/0.004251, allocations: 8.594 kB / 452.5 MB, free: 1.961 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.012e-05/0.004341, allocations: 31.91 kB / 452.5 MB, free: 1.93 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 6.663e-05/0.004408, allocations: 40.48 kB / 452.6 MB, free: 1.891 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 3.668e-05/0.004445, allocations: 29.78 kB / 452.6 MB, free: 1.863 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001532/0.004598, allocations: 107.5 kB / 452.7 MB, free: 1.758 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.185e-05/0.00461, allocations: 0 / 452.7 MB, free: 1.758 MB / 426.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.004611, allocations: 0 / 452.7 MB, free: 1.758 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.004622, allocations: 3.938 kB / 452.7 MB, free: 1.754 MB / 426.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.0004525/0.005074, allocations: 390.7 kB / 453.1 MB, free: 1.352 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.005114, allocations: 8.031 kB / 453.1 MB, free: 1.344 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001775/0.005291, allocations: 107 kB / 453.2 MB, free: 1.223 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002106/0.005502, allocations: 180.7 kB / 453.4 MB, free: 1.023 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.005514, allocations: 10.42 kB / 453.4 MB, free: 1.016 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.153e-05/0.005525, allocations: 4.875 kB / 453.4 MB, free: 1.012 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001557/0.005681, allocations: 146.2 kB / 453.5 MB, free: 0.8477 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.851e-06/0.005687, allocations: 0 / 453.5 MB, free: 0.8477 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.005696, allocations: 4 kB / 453.5 MB, free: 0.8438 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.0057, allocations: 0.6875 kB / 453.5 MB, free: 0.8438 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.531e-05/0.005726, allocations: 15.88 kB / 453.6 MB, free: 0.8281 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002842/0.00601, allocations: 223.7 kB / 453.8 MB, free: 0.5938 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.8e-05/0.006048, allocations: 18.52 kB / 453.8 MB, free: 0.5664 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.582e-05/0.006064, allocations: 8.922 kB / 453.8 MB, free: 0.5547 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.265e-05/0.006076, allocations: 1.031 kB / 453.8 MB, free: 0.5547 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000113/0.006189, allocations: 125.8 kB / 453.9 MB, free: 412 kB / 426.7 MB Notification: Performance of pre-optimization done (n=3): time 8.01e-07/0.00619, allocations: 0 / 453.9 MB, free: 412 kB / 426.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001074/0.006298, allocations: 50.45 kB / 454 MB, free: 356 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.466e-05/0.006322, allocations: 51.91 kB / 454 MB, free: 292 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001176/0.00644, allocations: 209 kB / 454.2 MB, free: 68 kB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.476e-05/0.006455, allocations: 35.08 kB / 454.3 MB, free: 28 kB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.577e-05/0.00651, allocations: 112.5 kB / 454.4 MB, free: 15.91 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.774e-05/0.006528, allocations: 7.891 kB / 454.4 MB, free: 15.9 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.233e-05/0.00656, allocations: 18.78 kB / 454.4 MB, free: 15.88 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.171e-05/0.006642, allocations: 338.7 kB / 454.7 MB, free: 15.54 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.093e-05/0.006653, allocations: 0 / 454.7 MB, free: 15.54 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.779e-05/0.006691, allocations: 74.69 kB / 454.8 MB, free: 15.45 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.574e-05/0.006727, allocations: 29.38 kB / 454.8 MB, free: 15.41 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.006729, allocations: 0 / 454.8 MB, free: 15.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.675e-05/0.006786, allocations: 42.28 kB / 454.9 MB, free: 15.36 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.006798, allocations: 9.438 kB / 454.9 MB, free: 15.36 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.006803, allocations: 0 / 454.9 MB, free: 15.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.875e-06/0.006811, allocations: 3.938 kB / 454.9 MB, free: 15.35 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.135e-05/0.006882, allocations: 12.77 kB / 454.9 MB, free: 15.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.035e-06/0.006885, allocations: 0 / 454.9 MB, free: 15.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.134e-05/0.006916, allocations: 9.375 kB / 454.9 MB, free: 15.33 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/0.006932, allocations: 7.984 kB / 454.9 MB, free: 15.32 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 6.932e-05/0.007001, allocations: 113.9 kB / 455 MB, free: 15.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.296e-05/0.007014, allocations: 12.83 kB / 455 MB, free: 15.19 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.418e-05/0.007038, allocations: 17.03 kB / 455.1 MB, free: 15.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.00704, allocations: 0 / 455.1 MB, free: 15.18 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.007043, allocations: 4.656 kB / 455.1 MB, free: 15.17 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.007045, allocations: 0.8438 kB / 455.1 MB, free: 15.17 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.323e-05/0.007129, allocations: 97.77 kB / 455.2 MB, free: 15.06 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.00713, allocations: 0 / 455.2 MB, free: 15.06 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.878e-05/0.007159, allocations: 12.56 kB / 455.2 MB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.137e-05/0.00717, allocations: 13.41 kB / 455.2 MB, free: 15.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.007172, allocations: 0 / 455.2 MB, free: 15.04 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.48e-06/0.007177, allocations: 3.984 kB / 455.2 MB, free: 15.03 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.007179, allocations: 0 / 455.2 MB, free: 15.03 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.007181, allocations: 6.094 kB / 455.2 MB, free: 15.03 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.924e-05/0.00725, allocations: 77.64 kB / 455.3 MB, free: 14.93 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.291e-05/0.007263, allocations: 7.984 kB / 455.3 MB, free: 14.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.394e-05/0.007287, allocations: 4 kB / 455.3 MB, free: 14.92 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.683e-05/0.007314, allocations: 7.984 kB / 455.3 MB, free: 14.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-06/0.007323, allocations: 5.219 kB / 455.3 MB, free: 14.91 MB / 442.7 MB Notification: Performance of sorting global known variables: time 4.907e-05/0.007372, allocations: 69.62 kB / 455.4 MB, free: 14.84 MB / 442.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007372, allocations: 0.9062 kB / 455.4 MB, free: 14.84 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0001199/0.007492, allocations: 23.89 kB / 455.4 MB, free: 14.82 MB / 442.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.0001792/0.007671, allocations: 104.1 kB / 455.5 MB, free: 14.71 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 7.087e-05/0.007742, allocations: 21.45 kB / 455.5 MB, free: 14.69 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/0.00775, allocations: 4.531 kB / 455.5 MB, free: 14.69 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 1.756e-05/0.007768, allocations: 16.84 kB / 455.5 MB, free: 14.67 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001424/0.00791, allocations: 48.58 kB / 455.6 MB, free: 14.62 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.008948, allocations: 280.3 kB / 455.9 MB, free: 14.32 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.577e-05/0.008984, allocations: 75.19 kB / 455.9 MB, free: 14.23 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 4.796e-05/0.009032, allocations: 13.2 kB / 455.9 MB, free: 14.22 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.386e-05/0.009105, allocations: 71.36 kB / 456 MB, free: 14.15 MB / 442.7 MB Notification: Performance of SimCode: time 1.052e-06/0.009107, allocations: 0.9062 kB / 456 MB, free: 14.15 MB / 442.7 MB Notification: Performance of Templates: time 0.003536/0.01264, allocations: 1.886 MB / 457.9 MB, free: 12.45 MB / 442.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.611499979160726]