Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IDEAS_dev_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.00699/0.00699, allocations: 101 kB / 15.73 MB, free: 6.066 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.001331/0.001331, allocations: 189.6 kB / 16.67 MB, free: 5.977 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.47/1.47, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8682/0.8682, allocations: 135.6 MB / 426.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 66.11 kB / 0.5857 GB, free: 21.53 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1418, allocations: 81.01 MB / 0.6648 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.00306/0.1449, allocations: 1.64 MB / 0.6664 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001032/0.146, allocations: 0.5378 MB / 0.667 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.251e-05/0.1461, allocations: 3.938 kB / 0.667 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000171/0.1463, allocations: 19.8 kB / 0.667 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002709/0.1466, allocations: 63.67 kB / 0.667 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001788/0.1468, allocations: 63.91 kB / 0.6671 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002144/0.147, allocations: 143.4 kB / 0.6672 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001757/0.1472, allocations: 53.45 kB / 0.6673 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001323/0.1473, allocations: 47.84 kB / 0.6673 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.1475, allocations: 67.62 kB / 0.6674 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.026e-05/0.1475, allocations: 8 kB / 0.6674 GB, free: 2.984 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.861e-05/0.1476, allocations: 23.98 kB / 0.6674 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.1477, allocations: 51.83 kB / 0.6675 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.713e-05/0.1478, allocations: 55.61 kB / 0.6675 GB, free: 2.855 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002375/0.148, allocations: 155.5 kB / 0.6677 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.148, allocations: 4 kB / 0.6677 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.273e-06/0.148, allocations: 0 / 0.6677 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.148, allocations: 0 / 0.6677 GB, free: 2.699 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.0006713/0.1487, allocations: 470.5 kB / 0.6681 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.1488, allocations: 9.109 kB / 0.6681 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.584e-05/0.1488, allocations: 42.75 kB / 0.6682 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.159e-05/0.1489, allocations: 20.83 kB / 0.6682 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003379/0.1492, allocations: 240.9 kB / 0.6684 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.1492, allocations: 8.312 kB / 0.6684 GB, free: 1.828 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.728e-06/0.1493, allocations: 4.375 kB / 0.6684 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002967/0.1496, allocations: 112.5 kB / 0.6686 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.1496, allocations: 4 kB / 0.6686 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.1496, allocations: 8 kB / 0.6686 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.1496, allocations: 0 / 0.6686 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002453/0.1499, allocations: 59.94 kB / 0.6686 GB, free: 1.641 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006207/0.1505, allocations: 384.5 kB / 0.669 GB, free: 1.215 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001451/0.1506, allocations: 42.48 kB / 0.669 GB, free: 1.164 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.1508, allocations: 28.91 kB / 0.6691 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.712e-05/0.1508, allocations: 0 / 0.6691 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000247/0.151, allocations: 101.1 kB / 0.6692 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.1511, allocations: 0 / 0.6692 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.000478/0.1515, allocations: 125.4 kB / 0.6693 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.638e-05/0.1516, allocations: 77.11 kB / 0.6693 GB, free: 0.793 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002768/0.1519, allocations: 257 kB / 0.6696 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.354e-05/0.1519, allocations: 29.7 kB / 0.6696 GB, free: 0.5 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.389e-05/0.152, allocations: 124.1 kB / 0.6697 GB, free: 384 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.989e-05/0.152, allocations: 11.84 kB / 0.6698 GB, free: 372 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.436e-05/0.1521, allocations: 21.7 kB / 0.6698 GB, free: 344 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.1522, allocations: 322.8 kB / 0.6701 GB, free: 12 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001386/0.1524, allocations: 28.03 kB / 0.6701 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000133/0.1525, allocations: 55.52 kB / 0.6702 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002335/0.1528, allocations: 66.47 kB / 0.6702 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1528, allocations: 3.938 kB / 0.6702 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000299/0.1531, allocations: 105.5 kB / 0.6703 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.1531, allocations: 9.719 kB / 0.6703 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.1531, allocations: 0 / 0.6703 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.1531, allocations: 3.938 kB / 0.6703 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.1533, allocations: 11.98 kB / 0.6704 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.668e-06/0.1533, allocations: 0 / 0.6704 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.267e-05/0.1534, allocations: 12.08 kB / 0.6704 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-06/0.1534, allocations: 8 kB / 0.6704 GB, free: 15.69 MB / 0.5137 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.0001182/0.1535, allocations: 125.8 kB / 0.6705 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.274e-05/0.1535, allocations: 23.8 kB / 0.6705 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.03e-05/0.1536, allocations: 25.17 kB / 0.6705 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.1536, allocations: 4 kB / 0.6705 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.1536, allocations: 3.938 kB / 0.6705 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.1536, allocations: 0 / 0.6705 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002016/0.1538, allocations: 221.6 kB / 0.6708 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1538, allocations: 0 / 0.6708 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.352e-05/0.1539, allocations: 15.98 kB / 0.6708 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.1539, allocations: 0 / 0.6708 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.1539, allocations: 7.938 kB / 0.6708 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.154, allocations: 0 / 0.6708 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.154, allocations: 0 / 0.6708 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003125/0.1543, allocations: 121 kB / 0.6709 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.967e-05/0.1543, allocations: 89.02 kB / 0.671 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.305e-05/0.1544, allocations: 3.938 kB / 0.671 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.835e-05/0.1545, allocations: 11.98 kB / 0.671 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.01e-05/0.1545, allocations: 7.984 kB / 0.671 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.247e-05/0.1545, allocations: 4 kB / 0.671 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001969/0.1547, allocations: 188.5 kB / 0.6712 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.51e-07/0.1548, allocations: 3.938 kB / 0.6712 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002342/0.155, allocations: 31.89 kB / 0.6712 GB, free: 14.71 MB / 0.5137 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.0007633/0.1558, allocations: 0.6709 MB / 0.6719 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.000301/0.1561, allocations: 63.81 kB / 0.6719 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1561, allocations: 0 / 0.6719 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001256/0.1562, allocations: 28.16 kB / 0.672 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003032/0.1565, allocations: 48.2 kB / 0.672 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002322/0.1589, allocations: 1.763 MB / 0.6737 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/0.1592, allocations: 0.7157 MB / 0.6744 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 7.456e-05/0.1593, allocations: 20.53 kB / 0.6744 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.582e-05/0.1594, allocations: 39.42 kB / 0.6745 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of SimCode: time 3.71e-07/0.1594, allocations: 0 / 0.6745 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02539/0.1848, allocations: 3.606 MB / 0.678 GB, free: 7.711 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.223/8.408, allocations: 7.219 kB / 0.678 GB, free: 7.707 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter.fmu > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)