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.0006852/0.0006852, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008922/0.001577, allocations: 440 kB / 10.41 MB, free: 284 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.0006858/0.0006858, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009108/0.001597, allocations: 475.6 kB / 11.79 MB, free: 2.375 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.9764/0.9764, allocations: 177.2 MB / 189.7 MB, free: 5.23 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08536/1.062, allocations: 53.66 MB / 243.4 MB, free: 15.5 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.7541/0.7541, allocations: 155.3 MB / 399.5 MB, free: 15.8 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.2616/1.016, allocations: 49.14 MB / 448.6 MB, free: 5.914 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.122e-06/1.122e-06, allocations: 0 / 449.9 MB, free: 4.645 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.227e-05/1.34e-05, allocations: 7.531 kB / 449.9 MB, free: 4.641 MB / 426.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002093/0.002107, allocations: 1.744 MB / 451.7 MB, free: 2.918 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009603/0.003067, allocations: 0.6235 MB / 452.3 MB, free: 2.297 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.168e-05/0.003149, allocations: 4.75 kB / 452.3 MB, free: 2.293 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001088/0.003257, allocations: 20.83 kB / 452.3 MB, free: 2.273 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000163/0.00342, allocations: 67.42 kB / 452.4 MB, free: 2.219 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001568/0.003577, allocations: 81.12 kB / 452.5 MB, free: 2.141 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001555/0.003733, allocations: 136.8 kB / 452.6 MB, free: 2.023 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.003863, allocations: 47.66 kB / 452.6 MB, free: 1.977 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001849/0.004048, allocations: 88.55 kB / 452.7 MB, free: 1.891 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.939e-05/0.004147, allocations: 55.8 kB / 452.8 MB, free: 1.836 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 2.442e-05/0.004171, allocations: 8.875 kB / 452.8 MB, free: 1.828 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.487e-05/0.004246, allocations: 31.88 kB / 452.8 MB, free: 1.797 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 6.494e-05/0.004311, allocations: 41.73 kB / 452.9 MB, free: 1.758 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 3.118e-05/0.004342, allocations: 23.94 kB / 452.9 MB, free: 1.734 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001523/0.004495, allocations: 111.5 kB / 453 MB, free: 1.625 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.217e-06/0.004504, allocations: 0 / 453 MB, free: 1.625 MB / 426.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.004505, allocations: 0 / 453 MB, free: 1.625 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.004513, allocations: 0.875 kB / 453 MB, free: 1.625 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.0004111/0.004924, allocations: 385.8 kB / 453.4 MB, free: 1.227 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.814e-05/0.004952, allocations: 9.219 kB / 453.4 MB, free: 1.219 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001363/0.005089, allocations: 106 kB / 453.5 MB, free: 1.098 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001974/0.005286, allocations: 194.3 kB / 453.7 MB, free: 0.8867 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.704e-06/0.005294, allocations: 4.375 kB / 453.7 MB, free: 0.8828 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.426e-05/0.005308, allocations: 8.375 kB / 453.7 MB, free: 0.875 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000132/0.00544, allocations: 136.9 kB / 453.8 MB, free: 0.7188 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.721e-06/0.005446, allocations: 1.125 kB / 453.8 MB, free: 0.7188 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.206e-06/0.005454, allocations: 4 kB / 453.8 MB, free: 0.7148 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.005459, allocations: 4 kB / 453.8 MB, free: 0.7109 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.284e-05/0.005482, allocations: 12.67 kB / 453.8 MB, free: 0.6992 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002623/0.005744, allocations: 220.1 kB / 454.1 MB, free: 480 kB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.636e-05/0.005781, allocations: 22.56 kB / 454.1 MB, free: 448 kB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.347e-05/0.005794, allocations: 9.516 kB / 454.1 MB, free: 436 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.054e-05/0.005805, allocations: 4.062 kB / 454.1 MB, free: 432 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.802e-05/0.005903, allocations: 121.7 kB / 454.2 MB, free: 280 kB / 426.7 MB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.005904, allocations: 0 / 454.2 MB, free: 280 kB / 426.7 MB Notification: Performance of matching and sorting (n=3): time 9.184e-05/0.005996, allocations: 42.48 kB / 454.3 MB, free: 232 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.104e-05/0.006017, allocations: 65.27 kB / 454.3 MB, free: 156 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.006138, allocations: 205 kB / 454.5 MB, free: 15.94 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.163e-05/0.00615, allocations: 29.69 kB / 454.5 MB, free: 15.9 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.123e-05/0.006191, allocations: 116.5 kB / 454.7 MB, free: 15.79 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.521e-05/0.006206, allocations: 7.891 kB / 454.7 MB, free: 15.78 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.676e-05/0.006233, allocations: 22.41 kB / 454.7 MB, free: 15.75 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.63e-05/0.006309, allocations: 330.7 kB / 455 MB, free: 15.42 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.011e-05/0.006319, allocations: 4.906 kB / 455 MB, free: 15.41 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.386e-05/0.006353, allocations: 73.97 kB / 455.1 MB, free: 15.32 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.881e-05/0.006382, allocations: 21.2 kB / 455.1 MB, free: 15.29 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.006383, allocations: 5.25 kB / 455.1 MB, free: 15.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.328e-05/0.006437, allocations: 53.55 kB / 455.2 MB, free: 15.23 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.006448, allocations: 4.531 kB / 455.2 MB, free: 15.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-06/0.006452, allocations: 2.938 kB / 455.2 MB, free: 15.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.548e-06/0.006461, allocations: 4 kB / 455.2 MB, free: 15.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.583e-05/0.006517, allocations: 4 kB / 455.2 MB, free: 15.22 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.935e-06/0.00652, allocations: 4 kB / 455.2 MB, free: 15.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.051e-05/0.00655, allocations: 15.86 kB / 455.2 MB, free: 15.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.109e-05/0.006561, allocations: 0 / 455.2 MB, free: 15.2 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.24e-05/0.006624, allocations: 114 kB / 455.3 MB, free: 15.08 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.334e-05/0.006637, allocations: 16.73 kB / 455.3 MB, free: 15.06 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.38e-05/0.006661, allocations: 17.02 kB / 455.3 MB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.006662, allocations: 1.031 kB / 455.3 MB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-06/0.006664, allocations: 0 / 455.3 MB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-06/0.006666, allocations: 0 / 455.3 MB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.192e-05/0.006738, allocations: 98.5 kB / 455.4 MB, free: 14.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.006738, allocations: 0 / 455.4 MB, free: 14.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.52e-05/0.006764, allocations: 16.89 kB / 455.5 MB, free: 14.92 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.112e-05/0.006775, allocations: 15.89 kB / 455.5 MB, free: 14.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.41e-07/0.006776, allocations: 0.625 kB / 455.5 MB, free: 14.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.567e-06/0.006779, allocations: 0 / 455.5 MB, free: 14.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/0.00678, allocations: 0.625 kB / 455.5 MB, free: 14.9 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.81e-07/0.00678, allocations: 0.625 kB / 455.5 MB, free: 14.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.062e-05/0.006841, allocations: 78.11 kB / 455.6 MB, free: 14.81 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.227e-05/0.006853, allocations: 4.625 kB / 455.6 MB, free: 14.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.45e-05/0.006878, allocations: 8.609 kB / 455.6 MB, free: 14.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.384e-05/0.006902, allocations: 4 kB / 455.6 MB, free: 14.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/0.00691, allocations: 4.625 kB / 455.6 MB, free: 14.79 MB / 442.7 MB Notification: Performance of sorting global known variables: time 4.804e-05/0.006958, allocations: 66.23 kB / 455.6 MB, free: 14.72 MB / 442.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006958, allocations: 0.5938 kB / 455.6 MB, free: 14.72 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0001143/0.007072, allocations: 32.7 kB / 455.7 MB, free: 14.69 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.0001477/0.00722, allocations: 95.88 kB / 455.8 MB, free: 14.59 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 7.156e-05/0.007292, allocations: 27.75 kB / 455.8 MB, free: 14.57 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.007297, allocations: 0 / 455.8 MB, free: 14.57 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 2.223e-05/0.00732, allocations: 12.86 kB / 455.8 MB, free: 14.55 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001763/0.007496, allocations: 198.5 kB / 456 MB, free: 14.33 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000676/0.008172, allocations: 286.2 kB / 456.3 MB, free: 14.03 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.434e-05/0.008206, allocations: 75.19 kB / 456.4 MB, free: 13.93 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 3.301e-05/0.008239, allocations: 9.297 kB / 456.4 MB, free: 13.93 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.368e-05/0.008313, allocations: 79.34 kB / 456.4 MB, free: 13.85 MB / 442.7 MB Notification: Performance of SimCode: time 3.71e-07/0.008313, allocations: 1 kB / 456.4 MB, free: 13.85 MB / 442.7 MB Notification: Performance of Templates: time 0.003331/0.01164, allocations: 1.884 MB / 458.3 MB, free: 12.15 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.581949087791145]