Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002325/0.002325, allocations: 193.5 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.787/2.787, allocations: 472.6 MB / 0.7451 GB, free: 4.613 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 62.78 kB / 0.912 GB, free: 33.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.287, allocations: 159.9 MB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003124/0.2901, allocations: 1.643 MB / 1.07 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000956/0.2911, allocations: 0.557 MB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.2913, allocations: 11.94 kB / 1.07 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001775/0.2914, allocations: 27.8 kB / 1.07 GB, free: 8.145 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002751/0.2917, allocations: 67.05 kB / 1.07 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001807/0.2919, allocations: 59.91 kB / 1.07 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001771/0.2921, allocations: 123.6 kB / 1.071 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001769/0.2923, allocations: 53.45 kB / 1.071 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001411/0.2925, allocations: 63.7 kB / 1.071 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001295/0.2926, allocations: 63.75 kB / 1.071 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.383e-05/0.2926, allocations: 11.94 kB / 1.071 GB, free: 7.711 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.634e-05/0.2927, allocations: 19.98 kB / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.959e-05/0.2928, allocations: 39.91 kB / 1.071 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.919e-05/0.2929, allocations: 63.53 kB / 1.071 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000201/0.2931, allocations: 147.7 kB / 1.071 GB, free: 7.445 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.2931, allocations: 3.938 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.312e-06/0.2931, allocations: 0 / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.2931, allocations: 0 / 1.071 GB, free: 7.441 MB / 0.8262 GB 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.0006164/0.2938, allocations: 462.7 kB / 1.071 GB, free: 6.941 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.2938, allocations: 8.031 kB / 1.071 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.124e-05/0.2939, allocations: 20.75 kB / 1.072 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002695/0.2941, allocations: 232.8 kB / 1.072 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.2942, allocations: 8.375 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.556e-05/0.2942, allocations: 4.375 kB / 1.072 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002736/0.2945, allocations: 106 kB / 1.072 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.2945, allocations: 0 / 1.072 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.2945, allocations: 11.92 kB / 1.072 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.2945, allocations: 0 / 1.072 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000233/0.2948, allocations: 63.94 kB / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006015/0.2954, allocations: 388.4 kB / 1.072 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001409/0.2955, allocations: 34.56 kB / 1.072 GB, free: 5.98 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001327/0.2957, allocations: 36.89 kB / 1.072 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.448e-05/0.2957, allocations: 0 / 1.072 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002774/0.296, allocations: 97.02 kB / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.296, allocations: 0 / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0004433/0.2964, allocations: 129.4 kB / 1.073 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.511e-05/0.2965, allocations: 77.11 kB / 1.073 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002458/0.2967, allocations: 249 kB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.2968, allocations: 29.64 kB / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.85e-05/0.2969, allocations: 132 kB / 1.073 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.231e-05/0.2969, allocations: 11.91 kB / 1.073 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.785e-05/0.2969, allocations: 13.72 kB / 1.073 GB, free: 5.148 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.297, allocations: 338.8 kB / 1.073 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.2972, allocations: 23.97 kB / 1.073 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001246/0.2973, allocations: 51.58 kB / 1.073 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002147/0.2975, allocations: 70.5 kB / 1.074 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.2975, allocations: 0 / 1.074 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002854/0.2978, allocations: 101.4 kB / 1.074 GB, free: 4.539 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.2978, allocations: 4.094 kB / 1.074 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.2979, allocations: 4 kB / 1.074 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.2979, allocations: 3.938 kB / 1.074 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.298, allocations: 15.98 kB / 1.074 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.298, allocations: 4 kB / 1.074 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.162e-05/0.2981, allocations: 11.89 kB / 1.074 GB, free: 4.496 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.468e-06/0.2981, allocations: 4 kB / 1.074 GB, free: 4.492 MB / 0.8262 GB 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 9.624e-05/0.2982, allocations: 125.8 kB / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.476e-05/0.2983, allocations: 23.81 kB / 1.074 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.981e-05/0.2983, allocations: 21.23 kB / 1.074 GB, free: 4.316 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.2983, allocations: 3.938 kB / 1.074 GB, free: 4.312 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.2983, allocations: 0 / 1.074 GB, free: 4.312 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.2983, allocations: 3.938 kB / 1.074 GB, free: 4.309 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002332/0.2986, allocations: 217.6 kB / 1.074 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.2986, allocations: 0 / 1.074 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001179/0.2987, allocations: 11.98 kB / 1.074 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.2987, allocations: 0 / 1.074 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.2988, allocations: 3.984 kB / 1.074 GB, free: 4.031 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.595e-06/0.2988, allocations: 11.88 kB / 1.074 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2988, allocations: 0 / 1.074 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003489/0.2991, allocations: 116.9 kB / 1.074 GB, free: 3.887 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.104e-05/0.2992, allocations: 92.86 kB / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.501e-05/0.2992, allocations: 4 kB / 1.074 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.701e-05/0.2993, allocations: 19.92 kB / 1.074 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.124e-05/0.2994, allocations: 3.984 kB / 1.074 GB, free: 3.75 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.211e-05/0.2994, allocations: 4 kB / 1.074 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001809/0.2996, allocations: 192.5 kB / 1.074 GB, free: 3.555 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2996, allocations: 0 / 1.074 GB, free: 3.555 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002234/0.2998, allocations: 20 kB / 1.075 GB, free: 3.535 MB / 0.8262 GB 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.0002266/0.3, allocations: 128.1 kB / 1.075 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002961/0.3004, allocations: 55.89 kB / 1.075 GB, free: 3.352 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3004, allocations: 0 / 1.075 GB, free: 3.352 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.3005, allocations: 27.97 kB / 1.075 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000299/0.3008, allocations: 47.41 kB / 1.075 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005327/0.3013, allocations: 292.2 kB / 1.075 GB, free: 2.973 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003148/0.3017, allocations: 0.7158 MB / 1.076 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.427e-05/0.3017, allocations: 12.55 kB / 1.076 GB, free: 2.219 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.931e-05/0.3018, allocations: 19.42 kB / 1.076 GB, free: 2.199 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.3018, allocations: 0 / 1.076 GB, free: 2.199 MB / 0.8262 GB Notification: Performance of Templates: time 0.004787/0.3066, allocations: 1.765 MB / 1.077 GB, free: 472 kB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_1.6_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_1.6_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_1.6_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)