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.0009798/0.0009798, allocations: 80.88 kB / 19.94 MB, free: 4.551 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.00104/0.00104, allocations: 177.3 kB / 23.36 MB, free: 1.137 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.044/1.044, allocations: 177.1 MB / 203.8 MB, free: 5.465 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.7848/0.7848, allocations: 154.9 MB / 415.1 MB, free: 252 kB / 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 1.854e-06/1.854e-06, allocations: 0 / 480.3 MB, free: 6.59 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.198e-05/2.384e-05, allocations: 4.281 kB / 480.3 MB, free: 6.586 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002245/0.002269, allocations: 1.687 MB / 482 MB, free: 4.922 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008071/0.003076, allocations: 0.6069 MB / 482.6 MB, free: 4.32 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.609e-05/0.003162, allocations: 7.938 kB / 482.6 MB, free: 4.312 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001669/0.003329, allocations: 25.53 kB / 482.7 MB, free: 4.289 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002054/0.003534, allocations: 69.33 kB / 482.7 MB, free: 4.23 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001953/0.00373, allocations: 76.31 kB / 482.8 MB, free: 4.156 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001575/0.003887, allocations: 135.5 kB / 482.9 MB, free: 4.031 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.003998, allocations: 38.92 kB / 483 MB, free: 3.988 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001593/0.004157, allocations: 84.48 kB / 483.1 MB, free: 3.906 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.319e-05/0.004241, allocations: 47.83 kB / 483.1 MB, free: 3.859 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 1.985e-05/0.00426, allocations: 8.875 kB / 483.1 MB, free: 3.852 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.142e-05/0.004322, allocations: 31.92 kB / 483.1 MB, free: 3.82 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 6.452e-05/0.004386, allocations: 44.48 kB / 483.2 MB, free: 3.777 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 3.133e-05/0.004418, allocations: 28.92 kB / 483.2 MB, free: 3.75 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001573/0.004575, allocations: 124.7 kB / 483.3 MB, free: 3.629 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.004577, allocations: 0 / 483.3 MB, free: 3.629 MB / 442.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.004578, allocations: 0 / 483.3 MB, free: 3.629 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.004582, allocations: 0.5312 kB / 483.3 MB, free: 3.629 MB / 442.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.0003992/0.004981, allocations: 370 kB / 483.7 MB, free: 3.25 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.005019, allocations: 12.03 kB / 483.7 MB, free: 3.238 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001156/0.005135, allocations: 20.92 kB / 483.7 MB, free: 3.219 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002061/0.005341, allocations: 193.1 kB / 483.9 MB, free: 3.004 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.878e-06/0.005351, allocations: 13.09 kB / 483.9 MB, free: 2.992 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.272e-05/0.005363, allocations: 4.375 kB / 483.9 MB, free: 2.988 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000151/0.005514, allocations: 142 kB / 484.1 MB, free: 2.832 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.891e-06/0.00552, allocations: 192 / 484.1 MB, free: 2.832 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.005528, allocations: 5.031 kB / 484.1 MB, free: 2.828 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.005534, allocations: 7.938 kB / 484.1 MB, free: 2.82 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.273e-05/0.005557, allocations: 12.89 kB / 484.1 MB, free: 2.809 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000277/0.005834, allocations: 217.7 kB / 484.3 MB, free: 2.578 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.793e-05/0.005872, allocations: 23.19 kB / 484.3 MB, free: 2.547 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.444e-05/0.005886, allocations: 5.484 kB / 484.3 MB, free: 2.539 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.005899, allocations: 8.062 kB / 484.3 MB, free: 2.531 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.677e-05/0.005985, allocations: 113.1 kB / 484.5 MB, free: 2.391 MB / 442.7 MB Notification: Performance of pre-optimization done (n=3): time 8.42e-07/0.005986, allocations: 0.625 kB / 484.5 MB, free: 2.391 MB / 442.7 MB Notification: Performance of matching and sorting (n=3): time 9.716e-05/0.006083, allocations: 49.62 kB / 484.5 MB, free: 2.336 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.046e-05/0.006114, allocations: 77.73 kB / 484.6 MB, free: 2.242 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.006226, allocations: 213 kB / 484.8 MB, free: 2.02 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.006239, allocations: 30.33 kB / 484.8 MB, free: 1.984 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.053e-05/0.00628, allocations: 113.1 kB / 484.9 MB, free: 1.871 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.562e-05/0.006296, allocations: 11.88 kB / 484.9 MB, free: 1.859 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.732e-05/0.006323, allocations: 18.52 kB / 485 MB, free: 1.836 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.473e-05/0.006398, allocations: 334.7 kB / 485.3 MB, free: 1.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.028e-05/0.006408, allocations: 1.781 kB / 485.3 MB, free: 1.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.968e-05/0.006438, allocations: 53.14 kB / 485.3 MB, free: 1.43 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.354e-05/0.006471, allocations: 29.95 kB / 485.4 MB, free: 1.391 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.006473, allocations: 4 kB / 485.4 MB, free: 1.387 MB / 442.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.466e-05/0.006528, allocations: 46.62 kB / 485.4 MB, free: 1.336 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.00654, allocations: 12.73 kB / 485.4 MB, free: 1.324 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.256e-06/0.006543, allocations: 0 / 485.4 MB, free: 1.324 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.526e-06/0.006552, allocations: 1.094 kB / 485.4 MB, free: 1.324 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.019e-05/0.006612, allocations: 8 kB / 485.4 MB, free: 1.316 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.504e-06/0.006614, allocations: 3.938 kB / 485.4 MB, free: 1.312 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.263e-05/0.006647, allocations: 8.703 kB / 485.5 MB, free: 1.305 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-06/0.006653, allocations: 4.969 kB / 485.5 MB, free: 1.301 MB / 442.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 5.779e-05/0.006711, allocations: 120.5 kB / 485.6 MB, free: 1.172 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.427e-05/0.006726, allocations: 12.7 kB / 485.6 MB, free: 1.16 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.419e-05/0.00675, allocations: 17.02 kB / 485.6 MB, free: 1.141 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.006752, allocations: 1.156 kB / 485.6 MB, free: 1.141 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-06/0.006753, allocations: 0 / 485.6 MB, free: 1.141 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.006755, allocations: 0 / 485.6 MB, free: 1.141 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.591e-05/0.006831, allocations: 103.7 kB / 485.7 MB, free: 1.023 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.006832, allocations: 0 / 485.7 MB, free: 1.023 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.327e-05/0.006855, allocations: 8 kB / 485.7 MB, free: 1.016 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.006857, allocations: 1.219 kB / 485.7 MB, free: 1.016 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.23e-06/0.006862, allocations: 4 kB / 485.7 MB, free: 1.012 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.776e-06/0.006865, allocations: 4.672 kB / 485.7 MB, free: 1.008 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.006866, allocations: 0 / 485.7 MB, free: 1.008 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.648e-05/0.006932, allocations: 78.33 kB / 485.8 MB, free: 0.9141 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.236e-05/0.006945, allocations: 15.89 kB / 485.8 MB, free: 0.8984 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.348e-05/0.006958, allocations: 4 kB / 485.8 MB, free: 0.8945 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.595e-05/0.006984, allocations: 5.031 kB / 485.8 MB, free: 0.8906 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.102e-05/0.007015, allocations: 11.98 kB / 485.8 MB, free: 0.8789 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.00703, allocations: 4 kB / 485.8 MB, free: 0.875 MB / 442.7 MB Notification: Performance of sorting global known variables: time 5.395e-05/0.007084, allocations: 74.73 kB / 485.9 MB, free: 0.8008 MB / 442.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007084, allocations: 0 / 485.9 MB, free: 0.8008 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0001227/0.007206, allocations: 24.39 kB / 485.9 MB, free: 0.7773 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.0001575/0.007364, allocations: 97.16 kB / 486 MB, free: 0.6797 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 7.345e-05/0.007437, allocations: 20.8 kB / 486.1 MB, free: 0.6562 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.007441, allocations: 0.5312 kB / 486.1 MB, free: 0.6562 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 1.859e-05/0.00746, allocations: 16.84 kB / 486.1 MB, free: 0.6367 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001485/0.007608, allocations: 46.05 kB / 486.1 MB, free: 0.5938 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004434/0.008052, allocations: 282.5 kB / 486.4 MB, free: 300 kB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.568e-05/0.008088, allocations: 71.33 kB / 486.5 MB, free: 208 kB / 442.7 MB Notification: Performance of simCode: alias equations: time 3.664e-05/0.008124, allocations: 9.578 kB / 486.5 MB, free: 200 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.133e-05/0.008196, allocations: 77.5 kB / 486.5 MB, free: 124 kB / 442.7 MB Notification: Performance of SimCode: time 4.11e-07/0.008196, allocations: 3.938 kB / 486.5 MB, free: 120 kB / 442.7 MB Notification: Performance of Templates: time 0.00352/0.01172, allocations: 1.791 MB / 488.3 MB, free: 14.51 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.6401318651624024]