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.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IDEAS_IDEAS_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IDEAS_IDEAS_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.005023/0.005023, allocations: 96.8 kB / 15.73 MB, free: 5.547 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.001067/0.001067, allocations: 190 kB / 16.67 MB, free: 5.48 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.258/1.258, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7438/0.7438, allocations: 132.2 MB / 422.7 MB, free: 6.547 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 62.2 kB / 0.5808 GB, free: 24.04 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1435, allocations: 80.2 MB / 0.6592 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003085/0.1466, allocations: 1.643 MB / 0.6608 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009149/0.1476, allocations: 0.5377 MB / 0.6613 GB, free: 8.582 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001046/0.1477, allocations: 4 kB / 0.6613 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001871/0.1479, allocations: 35.72 kB / 0.6613 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002785/0.1482, allocations: 63.97 kB / 0.6614 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001712/0.1484, allocations: 67.84 kB / 0.6615 GB, free: 8.418 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002141/0.1486, allocations: 139.5 kB / 0.6616 GB, free: 8.281 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001698/0.1488, allocations: 45.47 kB / 0.6616 GB, free: 8.23 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001307/0.1489, allocations: 51.83 kB / 0.6617 GB, free: 8.18 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001217/0.149, allocations: 63.69 kB / 0.6617 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.245e-05/0.1491, allocations: 8 kB / 0.6617 GB, free: 8.109 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.161e-05/0.1492, allocations: 31.92 kB / 0.6618 GB, free: 8.078 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.663e-05/0.1493, allocations: 47.83 kB / 0.6618 GB, free: 8.031 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.845e-05/0.1493, allocations: 55.61 kB / 0.6619 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002327/0.1496, allocations: 147.5 kB / 0.662 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.1496, allocations: 8 kB / 0.662 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.543e-06/0.1496, allocations: 0 / 0.662 GB, free: 7.824 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.178e-05/0.1496, allocations: 0 / 0.662 GB, free: 7.824 MB / 0.4981 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.0008014/0.1504, allocations: 470.4 kB / 0.6625 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.1505, allocations: 12.03 kB / 0.6625 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.403e-05/0.1506, allocations: 42.73 kB / 0.6625 GB, free: 7.254 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.433e-05/0.1506, allocations: 16.84 kB / 0.6625 GB, free: 7.238 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003999/0.151, allocations: 240.9 kB / 0.6628 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.1511, allocations: 384 / 0.6628 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.84e-05/0.1511, allocations: 8.375 kB / 0.6628 GB, free: 6.953 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002882/0.1514, allocations: 113.7 kB / 0.6629 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.1514, allocations: 3.984 kB / 0.6629 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.539e-05/0.1514, allocations: 4 kB / 0.6629 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.1514, allocations: 4 kB / 0.6629 GB, free: 6.824 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002268/0.1517, allocations: 63.94 kB / 0.663 GB, free: 6.762 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005968/0.1523, allocations: 384.5 kB / 0.6633 GB, free: 6.336 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000138/0.1524, allocations: 38.55 kB / 0.6634 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.1525, allocations: 28.91 kB / 0.6634 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.515e-05/0.1526, allocations: 7.984 kB / 0.6634 GB, free: 6.25 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002251/0.1528, allocations: 96.97 kB / 0.6635 GB, free: 6.137 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.1528, allocations: 0 / 0.6635 GB, free: 6.137 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004429/0.1532, allocations: 129.5 kB / 0.6636 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.808e-05/0.1533, allocations: 77.11 kB / 0.6637 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002428/0.1535, allocations: 257 kB / 0.6639 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.1536, allocations: 25.7 kB / 0.664 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.448e-05/0.1537, allocations: 128.1 kB / 0.6641 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.906e-05/0.1537, allocations: 7.891 kB / 0.6641 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.175e-05/0.1537, allocations: 25.7 kB / 0.6641 GB, free: 5.449 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001071/0.1538, allocations: 322.8 kB / 0.6644 GB, free: 5.125 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.154, allocations: 31.91 kB / 0.6644 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001175/0.1541, allocations: 47.41 kB / 0.6645 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002107/0.1543, allocations: 66.56 kB / 0.6646 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1543, allocations: 0 / 0.6646 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003015/0.1546, allocations: 105.5 kB / 0.6647 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.1546, allocations: 8 kB / 0.6647 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.1547, allocations: 0 / 0.6647 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.1547, allocations: 7.875 kB / 0.6647 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.1548, allocations: 11.98 kB / 0.6647 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.1548, allocations: 0 / 0.6647 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.361e-05/0.1549, allocations: 15.94 kB / 0.6647 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.1549, allocations: 7.938 kB / 0.6647 GB, free: 4.801 MB / 0.4981 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 0.0001065/0.155, allocations: 134.7 kB / 0.6648 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.968e-05/0.1551, allocations: 15.91 kB / 0.6649 GB, free: 4.645 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.78e-05/0.1551, allocations: 25.17 kB / 0.6649 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.1551, allocations: 0 / 0.6649 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1551, allocations: 4 kB / 0.6649 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.1551, allocations: 0 / 0.6649 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001602/0.1553, allocations: 217.6 kB / 0.6651 GB, free: 4.355 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.1553, allocations: 0 / 0.6651 GB, free: 4.355 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.23e-05/0.1554, allocations: 7.984 kB / 0.6651 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.1554, allocations: 4 kB / 0.6651 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-06/0.1554, allocations: 7.938 kB / 0.6651 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.1554, allocations: 0 / 0.6651 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1554, allocations: 288 / 0.6651 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002863/0.1557, allocations: 128.9 kB / 0.6652 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.881e-05/0.1558, allocations: 92.97 kB / 0.6653 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.486e-05/0.1558, allocations: 7.922 kB / 0.6653 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.463e-05/0.1559, allocations: 12 kB / 0.6653 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.801e-05/0.1559, allocations: 3.984 kB / 0.6653 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.18e-05/0.156, allocations: 8 kB / 0.6653 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001619/0.1561, allocations: 188.5 kB / 0.6655 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.61e-07/0.1561, allocations: 3.938 kB / 0.6655 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002201/0.1564, allocations: 23.94 kB / 0.6656 GB, free: 3.84 MB / 0.4981 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.0006523/0.157, allocations: 0.6736 MB / 0.6662 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002944/0.1573, allocations: 63.88 kB / 0.6663 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.1573, allocations: 0 / 0.6663 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001143/0.1575, allocations: 31.91 kB / 0.6663 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003033/0.1578, allocations: 46.2 kB / 0.6663 GB, free: 3 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001985/0.1598, allocations: 1.752 MB / 0.6681 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/0.16, allocations: 0.7236 MB / 0.6688 GB, free: 412 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.426e-05/0.1601, allocations: 12.55 kB / 0.6688 GB, free: 400 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.872e-05/0.1602, allocations: 47.36 kB / 0.6688 GB, free: 352 kB / 0.4981 GB Notification: Performance of SimCode: time 2.7e-07/0.1602, allocations: 0 / 0.6688 GB, free: 352 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01954/0.1797, allocations: 3.588 MB / 0.6723 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.58/7.76, allocations: 10.66 kB / 0.6723 GB, free: 12.85 MB / 0.5137 GB (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 & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 IDEAS_IDEAS_Utilities_IO_Files_Examples_JSONWriter.fmu > IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)