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.001438/0.001438, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.001872/0.001872, allocations: 177.4 kB / 23.36 MB, free: 1.129 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.006/1.006, allocations: 177.2 MB / 203.8 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-545:108: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/Examples/PPD12/Structure.mo:531:21-545:116:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.8477/0.8477, allocations: 154.6 MB / 414.8 MB, free: 0.5 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.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 4.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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.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: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 480 MB, free: 6.93 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.204e-05/2.363e-05, allocations: 5.047 kB / 480 MB, free: 6.926 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002406/0.002429, allocations: 1.686 MB / 481.7 MB, free: 5.262 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008694/0.003299, allocations: 0.6086 MB / 482.3 MB, free: 4.656 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.971e-05/0.003389, allocations: 4 kB / 482.3 MB, free: 4.652 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001756/0.003564, allocations: 29.33 kB / 482.3 MB, free: 4.625 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002172/0.003781, allocations: 69.64 kB / 482.4 MB, free: 4.566 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002058/0.003987, allocations: 75.78 kB / 482.4 MB, free: 4.492 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001686/0.004156, allocations: 145.5 kB / 482.6 MB, free: 4.359 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.004269, allocations: 26.33 kB / 482.6 MB, free: 4.332 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001724/0.004442, allocations: 86.89 kB / 482.7 MB, free: 4.25 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.591e-05/0.004528, allocations: 51.88 kB / 482.7 MB, free: 4.199 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 2.078e-05/0.004548, allocations: 8 kB / 482.8 MB, free: 4.191 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.935e-05/0.004608, allocations: 23.92 kB / 482.8 MB, free: 4.168 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 6.754e-05/0.004675, allocations: 51.83 kB / 482.8 MB, free: 4.117 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 3.615e-05/0.004711, allocations: 33.27 kB / 482.9 MB, free: 4.086 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001637/0.004875, allocations: 115.5 kB / 483 MB, free: 3.973 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.593e-06/0.004877, allocations: 0 / 483 MB, free: 3.973 MB / 442.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.004877, allocations: 0 / 483 MB, free: 3.973 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.047e-06/0.004881, allocations: 0.875 kB / 483 MB, free: 3.973 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.0003895/0.005271, allocations: 371.7 kB / 483.3 MB, free: 3.59 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.005303, allocations: 9.094 kB / 483.3 MB, free: 3.582 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.005417, allocations: 20.92 kB / 483.4 MB, free: 3.562 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002038/0.005621, allocations: 195.2 kB / 483.6 MB, free: 3.348 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.918e-06/0.005631, allocations: 384 / 483.6 MB, free: 3.348 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.71e-05/0.005648, allocations: 13 kB / 483.6 MB, free: 3.336 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001694/0.005818, allocations: 137.8 kB / 483.7 MB, free: 3.18 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.005833, allocations: 0.7969 kB / 483.7 MB, free: 3.18 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.005844, allocations: 5 kB / 483.7 MB, free: 3.176 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.005851, allocations: 3.938 kB / 483.7 MB, free: 3.172 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.361e-05/0.005875, allocations: 8.719 kB / 483.7 MB, free: 3.164 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000279/0.006154, allocations: 223 kB / 483.9 MB, free: 2.93 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.78e-05/0.006192, allocations: 24.02 kB / 484 MB, free: 2.898 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.365e-05/0.006205, allocations: 8.797 kB / 484 MB, free: 2.887 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.077e-05/0.006216, allocations: 0 / 484 MB, free: 2.887 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.343e-05/0.00631, allocations: 128.5 kB / 484.1 MB, free: 2.734 MB / 442.7 MB Notification: Performance of pre-optimization done (n=3): time 8.72e-07/0.006311, allocations: 0.9062 kB / 484.1 MB, free: 2.734 MB / 442.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001113/0.006422, allocations: 49.61 kB / 484.1 MB, free: 2.68 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.613e-05/0.006458, allocations: 81.8 kB / 484.2 MB, free: 2.582 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.006585, allocations: 213 kB / 484.4 MB, free: 2.359 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.257e-05/0.006597, allocations: 26.33 kB / 484.5 MB, free: 2.328 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.391e-05/0.006641, allocations: 108.5 kB / 484.6 MB, free: 2.219 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.896e-05/0.00666, allocations: 17.12 kB / 484.6 MB, free: 2.203 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.525e-05/0.006686, allocations: 13.72 kB / 484.6 MB, free: 2.184 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.999e-05/0.006776, allocations: 330.7 kB / 484.9 MB, free: 1.852 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.688e-06/0.006785, allocations: 0.5312 kB / 484.9 MB, free: 1.852 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.369e-05/0.006819, allocations: 62.17 kB / 485 MB, free: 1.773 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.561e-05/0.006855, allocations: 34.53 kB / 485 MB, free: 1.73 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.006856, allocations: 0 / 485 MB, free: 1.73 MB / 442.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.143e-05/0.006918, allocations: 54.64 kB / 485.1 MB, free: 1.672 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/0.006929, allocations: 5.719 kB / 485.1 MB, free: 1.668 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-06/0.006933, allocations: 5.281 kB / 485.1 MB, free: 1.664 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.032e-05/0.006943, allocations: 0 / 485.1 MB, free: 1.664 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.405e-05/0.006997, allocations: 4 kB / 485.1 MB, free: 1.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.007004, allocations: 8.922 kB / 485.1 MB, free: 1.652 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.145e-05/0.007035, allocations: 4 kB / 485.1 MB, free: 1.648 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-06/0.007041, allocations: 0.75 kB / 485.1 MB, free: 1.648 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.811e-05/0.007099, allocations: 116.6 kB / 485.2 MB, free: 1.523 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.4e-05/0.007113, allocations: 17.45 kB / 485.2 MB, free: 1.508 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.467e-05/0.007137, allocations: 20.95 kB / 485.2 MB, free: 1.484 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.007139, allocations: 0 / 485.2 MB, free: 1.484 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.007141, allocations: 0 / 485.2 MB, free: 1.484 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.726e-06/0.007144, allocations: 0.5312 kB / 485.2 MB, free: 1.484 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.622e-05/0.00722, allocations: 102.5 kB / 485.3 MB, free: 1.367 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.82e-07/0.007221, allocations: 0 / 485.3 MB, free: 1.367 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.127e-05/0.007242, allocations: 8.516 kB / 485.4 MB, free: 1.359 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.007244, allocations: 4 kB / 485.4 MB, free: 1.355 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.739e-06/0.007249, allocations: 0.75 kB / 485.4 MB, free: 1.355 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.00725, allocations: 0 / 485.4 MB, free: 1.355 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.007251, allocations: 4.438 kB / 485.4 MB, free: 1.352 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.505e-05/0.007316, allocations: 78.06 kB / 485.4 MB, free: 1.258 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.025e-05/0.007326, allocations: 7.953 kB / 485.4 MB, free: 1.25 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.18e-05/0.007338, allocations: 4 kB / 485.5 MB, free: 1.246 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.334e-05/0.007361, allocations: 4.938 kB / 485.5 MB, free: 1.242 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.827e-05/0.007389, allocations: 3.984 kB / 485.5 MB, free: 1.238 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.007402, allocations: 9.156 kB / 485.5 MB, free: 1.23 MB / 442.7 MB Notification: Performance of sorting global known variables: time 4.865e-05/0.007451, allocations: 70 kB / 485.5 MB, free: 1.16 MB / 442.7 MB Notification: Performance of sort global known variables: time 8e-08/0.007451, allocations: 0 / 485.5 MB, free: 1.16 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0001188/0.00757, allocations: 32.42 kB / 485.6 MB, free: 1.129 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.0001584/0.007728, allocations: 108.2 kB / 485.7 MB, free: 1.023 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 7.019e-05/0.007798, allocations: 17.5 kB / 485.7 MB, free: 1.004 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.007801, allocations: 2.344 kB / 485.7 MB, free: 1.004 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 1.806e-05/0.007819, allocations: 12.8 kB / 485.7 MB, free: 0.9883 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000145/0.007964, allocations: 46.52 kB / 485.8 MB, free: 0.9414 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004597/0.008424, allocations: 278.8 kB / 486 MB, free: 0.6406 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.496e-05/0.008459, allocations: 67.33 kB / 486.1 MB, free: 0.5547 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 3.777e-05/0.008497, allocations: 16.47 kB / 486.1 MB, free: 0.5352 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.396e-05/0.008571, allocations: 72.92 kB / 486.2 MB, free: 476 kB / 442.7 MB Notification: Performance of SimCode: time 4.21e-07/0.008571, allocations: 0 / 486.2 MB, free: 476 kB / 442.7 MB Notification: Performance of Templates: time 0.003592/0.01216, allocations: 1.795 MB / 488 MB, free: 14.85 MB / 458.7 MB " [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=240 -lv LOG_STATS > IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.6404144018888474]