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.001468/0.001468, allocations: 107.2 kB / 16.4 MB, free: 6.445 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.001634/0.001634, allocations: 195.9 kB / 17.34 MB, free: 5.719 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.419/1.419, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7157/0.7157, allocations: 115.3 MB / 406.5 MB, free: 6.195 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 64.3 kB / 0.5572 GB, free: 32.47 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1376, allocations: 76.17 MB / 0.6316 GB, free: 4.91 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.00298/0.1406, allocations: 1.637 MB / 0.6332 GB, free: 3.258 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009911/0.1417, allocations: 0.5378 MB / 0.6337 GB, free: 2.715 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.389e-05/0.1418, allocations: 7.938 kB / 0.6337 GB, free: 2.707 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001779/0.142, allocations: 27.77 kB / 0.6337 GB, free: 2.68 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00027/0.1423, allocations: 63.67 kB / 0.6338 GB, free: 2.617 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001729/0.1425, allocations: 63.86 kB / 0.6338 GB, free: 2.555 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001873/0.1427, allocations: 127.6 kB / 0.634 GB, free: 2.43 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000163/0.1428, allocations: 57.33 kB / 0.634 GB, free: 2.371 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001239/0.143, allocations: 55.77 kB / 0.6341 GB, free: 2.316 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001137/0.1431, allocations: 63.69 kB / 0.6341 GB, free: 2.254 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.75e-05/0.1431, allocations: 8 kB / 0.6341 GB, free: 2.246 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.302e-05/0.1432, allocations: 24 kB / 0.6342 GB, free: 2.223 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 8.977e-05/0.1433, allocations: 51.83 kB / 0.6342 GB, free: 2.172 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 7.528e-05/0.1434, allocations: 63.55 kB / 0.6343 GB, free: 2.109 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001974/0.1436, allocations: 142.3 kB / 0.6344 GB, free: 1.973 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1436, allocations: 0 / 0.6344 GB, free: 1.973 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1436, allocations: 0 / 0.6344 GB, free: 1.973 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.1436, allocations: 3.938 kB / 0.6344 GB, free: 1.969 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.0006141/0.1442, allocations: 467.4 kB / 0.6349 GB, free: 1.465 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.1443, allocations: 8.031 kB / 0.6349 GB, free: 1.457 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.701e-05/0.1443, allocations: 42.73 kB / 0.6349 GB, free: 1.406 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.729e-05/0.1444, allocations: 20.75 kB / 0.6349 GB, free: 1.387 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000281/0.1447, allocations: 232.8 kB / 0.6351 GB, free: 1.117 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.1447, allocations: 8.375 kB / 0.6352 GB, free: 1.109 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.518e-05/0.1447, allocations: 4.375 kB / 0.6352 GB, free: 1.105 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002732/0.145, allocations: 113.7 kB / 0.6353 GB, free: 0.9883 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.145, allocations: 0 / 0.6353 GB, free: 0.9883 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.675e-05/0.145, allocations: 12 kB / 0.6353 GB, free: 0.9766 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.145, allocations: 0 / 0.6353 GB, free: 0.9766 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002331/0.1453, allocations: 67.88 kB / 0.6353 GB, free: 0.9102 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005906/0.1459, allocations: 380.5 kB / 0.6357 GB, free: 500 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000132/0.146, allocations: 38.55 kB / 0.6357 GB, free: 452 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.1461, allocations: 32.89 kB / 0.6358 GB, free: 416 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.466e-05/0.1461, allocations: 0 / 0.6358 GB, free: 416 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002569/0.1464, allocations: 105 kB / 0.6359 GB, free: 292 kB / 478.1 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.1464, allocations: 4 kB / 0.6359 GB, free: 288 kB / 478.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004072/0.1468, allocations: 121.3 kB / 0.636 GB, free: 160 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.1469, allocations: 77.11 kB / 0.6361 GB, free: 64 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002661/0.1472, allocations: 257 kB / 0.6363 GB, free: 15.8 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.1472, allocations: 25.7 kB / 0.6363 GB, free: 15.77 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.772e-05/0.1473, allocations: 136 kB / 0.6365 GB, free: 15.63 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.083e-05/0.1473, allocations: 7.906 kB / 0.6365 GB, free: 15.62 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.883e-05/0.1473, allocations: 17.72 kB / 0.6365 GB, free: 15.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.1475, allocations: 326.8 kB / 0.6368 GB, free: 15.27 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.1476, allocations: 19.97 kB / 0.6368 GB, free: 15.25 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000115/0.1477, allocations: 55.34 kB / 0.6369 GB, free: 15.19 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002091/0.1479, allocations: 66.52 kB / 0.6369 GB, free: 15.11 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1479, allocations: 0 / 0.6369 GB, free: 15.11 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002708/0.1482, allocations: 101.4 kB / 0.637 GB, free: 15.01 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.1482, allocations: 11.98 kB / 0.637 GB, free: 15 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.1482, allocations: 0 / 0.637 GB, free: 15 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.1483, allocations: 3.938 kB / 0.6371 GB, free: 14.99 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.1484, allocations: 11.98 kB / 0.6371 GB, free: 14.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.1484, allocations: 7.938 kB / 0.6371 GB, free: 14.97 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.204e-05/0.1485, allocations: 11.89 kB / 0.6371 GB, free: 14.96 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.347e-06/0.1485, allocations: 8.094 kB / 0.6371 GB, free: 14.95 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.0001089/0.1486, allocations: 129.8 kB / 0.6372 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.173e-05/0.1487, allocations: 15.81 kB / 0.6372 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.889e-05/0.1487, allocations: 21.19 kB / 0.6372 GB, free: 14.77 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.1487, allocations: 0 / 0.6372 GB, free: 14.77 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.1487, allocations: 3.984 kB / 0.6373 GB, free: 14.77 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.1487, allocations: 0 / 0.6373 GB, free: 14.77 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001771/0.1489, allocations: 217.6 kB / 0.6375 GB, free: 14.51 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1489, allocations: 3.938 kB / 0.6375 GB, free: 14.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.886e-05/0.149, allocations: 19.98 kB / 0.6375 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.149, allocations: 0 / 0.6375 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.869e-06/0.149, allocations: 3.938 kB / 0.6375 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.1491, allocations: 0 / 0.6375 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.1491, allocations: 0 / 0.6375 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002886/0.1494, allocations: 120.8 kB / 0.6376 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.957e-05/0.1494, allocations: 96.91 kB / 0.6377 GB, free: 14.23 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.395e-05/0.1494, allocations: 3.938 kB / 0.6377 GB, free: 14.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.508e-05/0.1495, allocations: 11.98 kB / 0.6377 GB, free: 14.21 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.548e-05/0.1496, allocations: 4 kB / 0.6377 GB, free: 14.21 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.714e-05/0.1496, allocations: 7.984 kB / 0.6377 GB, free: 14.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001701/0.1498, allocations: 184.5 kB / 0.6379 GB, free: 14.02 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1498, allocations: 0 / 0.6379 GB, free: 14.02 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002464/0.1501, allocations: 27.91 kB / 0.6379 GB, free: 14 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.000665/0.1507, allocations: 0.687 MB / 0.6386 GB, free: 13.29 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002798/0.151, allocations: 59.83 kB / 0.6387 GB, free: 13.23 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.151, allocations: 0 / 0.6387 GB, free: 13.23 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.1512, allocations: 27.97 kB / 0.6387 GB, free: 13.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003021/0.1515, allocations: 49.48 kB / 0.6387 GB, free: 13.16 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002077/0.1536, allocations: 1.741 MB / 0.6404 GB, free: 11.32 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003007/0.1539, allocations: 0.7236 MB / 0.6411 GB, free: 10.57 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.845e-05/0.154, allocations: 12.55 kB / 0.6411 GB, free: 10.56 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.177e-05/0.154, allocations: 43.42 kB / 0.6412 GB, free: 10.52 MB / 494.1 MB Notification: Performance of SimCode: time 2.7e-07/0.154, allocations: 3.938 kB / 0.6412 GB, free: 10.51 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01988/0.1739, allocations: 3.659 MB / 0.6448 GB, free: 6.953 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.897/8.071, allocations: 3.938 kB / 0.6448 GB, free: 6.949 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)