Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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: "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001847/0.001847, allocations: 101.5 kB / 16.4 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001746/0.001745, allocations: 195.8 kB / 17.34 MB, free: 5.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.062/2.062, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 1.252/1.252, allocations: 115.3 MB / 406.5 MB, free: 6.18 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002411/0.002411, allocations: 73.92 kB / 0.5572 GB, free: 32.53 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2729, allocations: 76.18 MB / 0.6316 GB, free: 4.957 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.005881/0.2789, allocations: 1.626 MB / 0.6332 GB, free: 3.316 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001965/0.2809, allocations: 0.5417 MB / 0.6337 GB, free: 2.77 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000213/0.2812, allocations: 7.938 kB / 0.6337 GB, free: 2.762 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003864/0.2817, allocations: 23.78 kB / 0.6337 GB, free: 2.738 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005924/0.2823, allocations: 63.67 kB / 0.6338 GB, free: 2.676 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003302/0.2827, allocations: 59.92 kB / 0.6338 GB, free: 2.617 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003484/0.2831, allocations: 139.5 kB / 0.634 GB, free: 2.48 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003441/0.2834, allocations: 49.39 kB / 0.634 GB, free: 2.43 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000271/0.2837, allocations: 55.77 kB / 0.6341 GB, free: 2.375 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002472/0.284, allocations: 67.69 kB / 0.6341 GB, free: 2.309 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 4.797e-05/0.284, allocations: 8 kB / 0.6341 GB, free: 2.301 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001237/0.2842, allocations: 27.94 kB / 0.6342 GB, free: 2.273 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001782/0.2844, allocations: 51.83 kB / 0.6342 GB, free: 2.223 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.2845, allocations: 55.61 kB / 0.6343 GB, free: 2.168 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004204/0.285, allocations: 150.2 kB / 0.6344 GB, free: 2.023 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.101e-05/0.285, allocations: 0 / 0.6344 GB, free: 2.023 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.285, allocations: 3.938 kB / 0.6344 GB, free: 2.02 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.285, allocations: 0 / 0.6344 GB, free: 2.02 MB / 478.1 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.001201/0.2862, allocations: 463.5 kB / 0.6349 GB, free: 1.52 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.773e-05/0.2863, allocations: 8.031 kB / 0.6349 GB, free: 1.512 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.042e-05/0.2864, allocations: 42.73 kB / 0.6349 GB, free: 1.461 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.298e-05/0.2865, allocations: 16.75 kB / 0.6349 GB, free: 1.445 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005322/0.2871, allocations: 240.7 kB / 0.6352 GB, free: 1.168 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.579e-05/0.2871, allocations: 8.375 kB / 0.6352 GB, free: 1.16 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.488e-05/0.2871, allocations: 4.375 kB / 0.6352 GB, free: 1.156 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005069/0.2877, allocations: 117.8 kB / 0.6353 GB, free: 1.035 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.2877, allocations: 0 / 0.6353 GB, free: 1.035 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.46e-05/0.2877, allocations: 4 kB / 0.6353 GB, free: 1.031 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.938e-05/0.2878, allocations: 3.938 kB / 0.6353 GB, free: 1.027 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003453/0.2881, allocations: 67.88 kB / 0.6353 GB, free: 0.9609 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009783/0.2891, allocations: 380.5 kB / 0.6357 GB, free: 0.5391 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002107/0.2893, allocations: 42.48 kB / 0.6358 GB, free: 500 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.2895, allocations: 28.89 kB / 0.6358 GB, free: 468 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.332e-05/0.2895, allocations: 0 / 0.6358 GB, free: 468 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003744/0.2899, allocations: 101.1 kB / 0.6359 GB, free: 348 kB / 478.1 MB Notification: Performance of pre-optimization done (n=3): time 2.385e-06/0.2899, allocations: 0 / 0.6359 GB, free: 348 kB / 478.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007315/0.2907, allocations: 121.3 kB / 0.636 GB, free: 220 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.985e-05/0.2908, allocations: 81.11 kB / 0.6361 GB, free: 120 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000465/0.2913, allocations: 257 kB / 0.6363 GB, free: 15.86 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.587e-05/0.2913, allocations: 25.7 kB / 0.6363 GB, free: 15.82 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.2915, allocations: 132 kB / 0.6365 GB, free: 15.69 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.027e-05/0.2915, allocations: 7.906 kB / 0.6365 GB, free: 15.68 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.919e-05/0.2916, allocations: 13.72 kB / 0.6365 GB, free: 15.66 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002275/0.2918, allocations: 330.8 kB / 0.6368 GB, free: 15.33 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001731/0.292, allocations: 23.97 kB / 0.6368 GB, free: 15.31 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.2922, allocations: 47.41 kB / 0.6369 GB, free: 15.25 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003323/0.2926, allocations: 74.48 kB / 0.6369 GB, free: 15.17 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.2926, allocations: 0 / 0.6369 GB, free: 15.17 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004275/0.293, allocations: 101.4 kB / 0.637 GB, free: 15.06 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.214e-05/0.2931, allocations: 8 kB / 0.637 GB, free: 15.05 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.2931, allocations: 0 / 0.637 GB, free: 15.05 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.949e-05/0.2931, allocations: 3.938 kB / 0.637 GB, free: 15.05 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001856/0.2933, allocations: 16.08 kB / 0.6371 GB, free: 15.04 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.2933, allocations: 7.938 kB / 0.6371 GB, free: 15.03 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001533/0.2935, allocations: 11.89 kB / 0.6371 GB, free: 15.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.2935, allocations: 4 kB / 0.6371 GB, free: 15.01 MB / 494.1 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 0.0001952/0.2937, allocations: 129.8 kB / 0.6372 GB, free: 14.88 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.331e-05/0.2938, allocations: 19.75 kB / 0.6372 GB, free: 14.86 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.204e-05/0.2939, allocations: 21.19 kB / 0.6372 GB, free: 14.83 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.2939, allocations: 3.984 kB / 0.6373 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.2939, allocations: 4 kB / 0.6373 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.2939, allocations: 0 / 0.6373 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000322/0.2942, allocations: 225.5 kB / 0.6375 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.2943, allocations: 0 / 0.6375 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001231/0.2944, allocations: 11.98 kB / 0.6375 GB, free: 14.54 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.2944, allocations: 0 / 0.6375 GB, free: 14.54 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/0.2944, allocations: 3.938 kB / 0.6375 GB, free: 14.54 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.2945, allocations: 0 / 0.6375 GB, free: 14.54 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2945, allocations: 0 / 0.6375 GB, free: 14.54 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004687/0.2949, allocations: 124.9 kB / 0.6376 GB, free: 14.39 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.456e-05/0.2951, allocations: 89.25 kB / 0.6377 GB, free: 14.29 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.446e-05/0.2951, allocations: 3.938 kB / 0.6377 GB, free: 14.29 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.2952, allocations: 11.98 kB / 0.6377 GB, free: 14.27 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.5e-05/0.2953, allocations: 4 kB / 0.6377 GB, free: 14.27 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.775e-05/0.2954, allocations: 11.92 kB / 0.6377 GB, free: 14.26 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002527/0.2956, allocations: 188.5 kB / 0.6379 GB, free: 14.07 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2956, allocations: 0 / 0.6379 GB, free: 14.07 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003851/0.296, allocations: 27.91 kB / 0.6379 GB, free: 14.05 MB / 494.1 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.001041/0.2971, allocations: 0.6866 MB / 0.6386 GB, free: 13.34 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004409/0.2975, allocations: 55.83 kB / 0.6387 GB, free: 13.28 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.2976, allocations: 192 / 0.6387 GB, free: 13.28 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001757/0.2977, allocations: 31.97 kB / 0.6387 GB, free: 13.25 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005276/0.2983, allocations: 44.91 kB / 0.6387 GB, free: 13.21 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003577/0.3019, allocations: 1.74 MB / 0.6404 GB, free: 11.38 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005589/0.3025, allocations: 0.7197 MB / 0.6411 GB, free: 10.63 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001476/0.3027, allocations: 20.61 kB / 0.6411 GB, free: 10.61 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/0.3028, allocations: 43.42 kB / 0.6412 GB, free: 10.56 MB / 494.1 MB Notification: Performance of SimCode: time 4.909e-06/0.3028, allocations: 0 / 0.6412 GB, free: 10.56 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03625/0.3391, allocations: 3.655 MB / 0.6448 GB, free: 7.008 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.84/13.18, allocations: 17.81 kB / 0.6448 GB, free: 6.996 MB / 494.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter.fmu > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)