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.001021/0.001021, allocations: 109.7 kB / 15.99 MB, free: 6.359 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.0009737/0.0009738, allocations: 190.5 kB / 16.91 MB, free: 6.195 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.288/1.288, allocations: 222.9 MB / 240.6 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6672/0.6672, allocations: 115.3 MB / 406.1 MB, free: 2.703 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 70.73 kB / 493.2 MB, free: 6.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1159, allocations: 76.18 MB / 0.556 GB, free: 10.59 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.002757/0.1187, allocations: 1.697 MB / 0.5577 GB, free: 8.875 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008161/0.1196, allocations: 0.5339 MB / 0.5582 GB, free: 8.336 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.687e-05/0.1197, allocations: 11.94 kB / 0.5582 GB, free: 8.324 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001634/0.1198, allocations: 23.84 kB / 0.5583 GB, free: 8.301 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000206/0.1201, allocations: 43.83 kB / 0.5583 GB, free: 8.258 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001466/0.1202, allocations: 67.86 kB / 0.5584 GB, free: 8.191 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001625/0.1204, allocations: 127.6 kB / 0.5585 GB, free: 8.066 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000134/0.1205, allocations: 49.42 kB / 0.5585 GB, free: 8.016 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.1206, allocations: 55.77 kB / 0.5586 GB, free: 7.961 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.703e-05/0.1207, allocations: 59.7 kB / 0.5586 GB, free: 7.902 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.401e-05/0.1208, allocations: 8 kB / 0.5586 GB, free: 7.895 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.584e-05/0.1208, allocations: 23.98 kB / 0.5587 GB, free: 7.871 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 8.272e-05/0.1209, allocations: 47.77 kB / 0.5587 GB, free: 7.824 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.135e-05/0.121, allocations: 55.61 kB / 0.5588 GB, free: 7.77 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001716/0.1212, allocations: 151.7 kB / 0.5589 GB, free: 7.621 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.1212, allocations: 0 / 0.5589 GB, free: 7.621 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1212, allocations: 0 / 0.5589 GB, free: 7.621 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.1212, allocations: 0 / 0.5589 GB, free: 7.621 MB / 430.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.000555/0.1218, allocations: 462.7 kB / 0.5594 GB, free: 7.121 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.1218, allocations: 12.03 kB / 0.5594 GB, free: 7.109 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.613e-05/0.1218, allocations: 42.62 kB / 0.5594 GB, free: 7.059 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.508e-05/0.1219, allocations: 24.67 kB / 0.5594 GB, free: 7.035 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002204/0.1221, allocations: 232.9 kB / 0.5597 GB, free: 6.77 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.183e-06/0.1221, allocations: 8.375 kB / 0.5597 GB, free: 6.762 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.363e-05/0.1222, allocations: 4.375 kB / 0.5597 GB, free: 6.758 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002664/0.1224, allocations: 109.8 kB / 0.5598 GB, free: 6.645 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.1224, allocations: 0 / 0.5598 GB, free: 6.645 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/0.1225, allocations: 4 kB / 0.5598 GB, free: 6.641 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.1225, allocations: 4 kB / 0.5598 GB, free: 6.637 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002249/0.1227, allocations: 67.88 kB / 0.5598 GB, free: 6.57 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000527/0.1232, allocations: 384.4 kB / 0.5602 GB, free: 6.145 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001261/0.1234, allocations: 34.55 kB / 0.5602 GB, free: 6.102 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001088/0.1235, allocations: 36.89 kB / 0.5603 GB, free: 6.062 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.23e-05/0.1235, allocations: 0 / 0.5603 GB, free: 6.062 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002385/0.1238, allocations: 97.08 kB / 0.5604 GB, free: 5.949 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.1238, allocations: 0 / 0.5604 GB, free: 5.949 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004144/0.1242, allocations: 125.3 kB / 0.5605 GB, free: 5.82 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.985e-05/0.1242, allocations: 77.11 kB / 0.5606 GB, free: 5.727 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002237/0.1245, allocations: 253 kB / 0.5608 GB, free: 5.477 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.1245, allocations: 29.7 kB / 0.5608 GB, free: 5.441 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.519e-05/0.1246, allocations: 132 kB / 0.561 GB, free: 5.309 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.802e-05/0.1246, allocations: 11.89 kB / 0.561 GB, free: 5.297 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.611e-05/0.1246, allocations: 13.72 kB / 0.561 GB, free: 5.277 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.217e-05/0.1247, allocations: 326.8 kB / 0.5613 GB, free: 4.949 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.1249, allocations: 27.97 kB / 0.5613 GB, free: 4.922 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001302/0.125, allocations: 47.41 kB / 0.5614 GB, free: 4.863 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002155/0.1252, allocations: 78.42 kB / 0.5614 GB, free: 4.777 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1252, allocations: 0 / 0.5614 GB, free: 4.777 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002723/0.1255, allocations: 101.4 kB / 0.5615 GB, free: 4.672 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.1255, allocations: 12.09 kB / 0.5615 GB, free: 4.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.1255, allocations: 0 / 0.5615 GB, free: 4.66 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.1256, allocations: 3.938 kB / 0.5616 GB, free: 4.656 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.1257, allocations: 11.98 kB / 0.5616 GB, free: 4.645 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.1257, allocations: 0 / 0.5616 GB, free: 4.645 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.915e-05/0.1258, allocations: 15.89 kB / 0.5616 GB, free: 4.629 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.467e-06/0.1258, allocations: 4 kB / 0.5616 GB, free: 4.625 MB / 430.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 9.148e-05/0.1259, allocations: 129.8 kB / 0.5617 GB, free: 4.488 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.962e-05/0.1259, allocations: 20.09 kB / 0.5617 GB, free: 4.469 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.11e-05/0.126, allocations: 21.19 kB / 0.5617 GB, free: 4.449 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.126, allocations: 7.969 kB / 0.5618 GB, free: 4.441 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.126, allocations: 4 kB / 0.5618 GB, free: 4.438 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.126, allocations: 0 / 0.5618 GB, free: 4.438 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001478/0.1261, allocations: 217.5 kB / 0.562 GB, free: 4.176 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1261, allocations: 3.938 kB / 0.562 GB, free: 4.172 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.404e-05/0.1262, allocations: 11.98 kB / 0.562 GB, free: 4.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1262, allocations: 0 / 0.562 GB, free: 4.16 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.919e-06/0.1263, allocations: 7.938 kB / 0.562 GB, free: 4.152 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.1263, allocations: 4 kB / 0.562 GB, free: 4.148 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.1263, allocations: 0 / 0.562 GB, free: 4.148 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000279/0.1266, allocations: 124.8 kB / 0.5621 GB, free: 4.008 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.071e-05/0.1266, allocations: 88.92 kB / 0.5622 GB, free: 3.902 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.319e-05/0.1266, allocations: 3.938 kB / 0.5622 GB, free: 3.898 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.741e-05/0.1267, allocations: 15.98 kB / 0.5622 GB, free: 3.883 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.626e-05/0.1268, allocations: 4 kB / 0.5622 GB, free: 3.879 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-05/0.1268, allocations: 7.984 kB / 0.5622 GB, free: 3.871 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001546/0.127, allocations: 184.5 kB / 0.5624 GB, free: 3.688 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.127, allocations: 0 / 0.5624 GB, free: 3.688 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000224/0.1272, allocations: 32.03 kB / 0.5624 GB, free: 3.656 MB / 430.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.0005853/0.1278, allocations: 0.6682 MB / 0.5631 GB, free: 2.965 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002667/0.1281, allocations: 63.83 kB / 0.5631 GB, free: 2.902 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1281, allocations: 0 / 0.5631 GB, free: 2.902 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001135/0.1282, allocations: 27.97 kB / 0.5632 GB, free: 2.875 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002744/0.1285, allocations: 43.64 kB / 0.5632 GB, free: 2.836 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001887/0.1304, allocations: 1.778 MB / 0.5649 GB, free: 0.957 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002224/0.1306, allocations: 0.7238 MB / 0.5657 GB, free: 212 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.534e-05/0.1307, allocations: 20.53 kB / 0.5657 GB, free: 192 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.467e-05/0.1307, allocations: 39.42 kB / 0.5657 GB, free: 152 kB / 430.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1308, allocations: 0 / 0.5657 GB, free: 152 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4048/0.5356, allocations: 3.369 MB / 0.569 GB, free: 12.93 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001687/0.5358, allocations: 196.3 kB / 0.5692 GB, free: 12.67 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.125/2.661, allocations: 8 kB / 0.5692 GB, free: 12.66 MB / 446.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)