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.001147/0.001147, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 193.2 kB / 16.53 MB, free: 6.664 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.352/1.352, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9313/0.9313, allocations: 135.1 MB / 425.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 68.3 kB / 0.5054 GB, free: 5.25 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1437, allocations: 80.92 MB / 0.5845 GB, free: 4.484 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.00334/0.1471, allocations: 1.636 MB / 0.5861 GB, free: 2.836 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009291/0.148, allocations: 0.5378 MB / 0.5866 GB, free: 2.293 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.1482, allocations: 4 kB / 0.5866 GB, free: 2.289 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001826/0.1484, allocations: 27.73 kB / 0.5866 GB, free: 2.262 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000261/0.1486, allocations: 59.67 kB / 0.5867 GB, free: 2.203 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001817/0.1488, allocations: 63.91 kB / 0.5867 GB, free: 2.141 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001812/0.149, allocations: 135.6 kB / 0.5869 GB, free: 2.008 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001565/0.1492, allocations: 49.45 kB / 0.5869 GB, free: 1.953 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001198/0.1493, allocations: 51.78 kB / 0.587 GB, free: 1.902 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001207/0.1494, allocations: 67.62 kB / 0.587 GB, free: 1.836 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.228e-05/0.1495, allocations: 12 kB / 0.587 GB, free: 1.824 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.749e-05/0.1496, allocations: 27.98 kB / 0.5871 GB, free: 1.797 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.268e-05/0.1497, allocations: 43.83 kB / 0.5871 GB, free: 1.754 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.608e-05/0.1497, allocations: 55.61 kB / 0.5872 GB, free: 1.699 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000191/0.1499, allocations: 143.7 kB / 0.5873 GB, free: 1.559 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.1499, allocations: 0 / 0.5873 GB, free: 1.559 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1499, allocations: 0 / 0.5873 GB, free: 1.559 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.15, allocations: 0 / 0.5873 GB, free: 1.559 MB / 494.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.0005952/0.1506, allocations: 474.5 kB / 0.5878 GB, free: 1.047 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.1506, allocations: 12.03 kB / 0.5878 GB, free: 1.035 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.237e-05/0.1506, allocations: 38.73 kB / 0.5878 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.874e-05/0.1507, allocations: 20.66 kB / 0.5878 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002282/0.1509, allocations: 229 kB / 0.588 GB, free: 0.707 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.516e-06/0.151, allocations: 4.375 kB / 0.588 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.518e-05/0.151, allocations: 4.375 kB / 0.588 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00028/0.1513, allocations: 109.7 kB / 0.5882 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.1513, allocations: 0 / 0.5882 GB, free: 0.5859 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.1513, allocations: 8 kB / 0.5882 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.1513, allocations: 4 kB / 0.5882 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002299/0.1516, allocations: 63.94 kB / 0.5882 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006296/0.1522, allocations: 384.4 kB / 0.5886 GB, free: 88 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001353/0.1523, allocations: 38.55 kB / 0.5886 GB, free: 40 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001097/0.1525, allocations: 32.89 kB / 0.5887 GB, free: 4 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.489e-05/0.1525, allocations: 0 / 0.5887 GB, free: 4 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003598/0.1528, allocations: 105 kB / 0.5888 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.232e-06/0.1529, allocations: 0 / 0.5888 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.000475/0.1533, allocations: 117.5 kB / 0.5889 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.67e-05/0.1534, allocations: 81.05 kB / 0.5889 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002516/0.1537, allocations: 256.9 kB / 0.5892 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.1537, allocations: 33.7 kB / 0.5892 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.621e-05/0.1538, allocations: 128 kB / 0.5893 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.966e-05/0.1538, allocations: 7.906 kB / 0.5894 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.267e-05/0.1538, allocations: 13.72 kB / 0.5894 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001106/0.154, allocations: 330.8 kB / 0.5897 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.1541, allocations: 27.86 kB / 0.5897 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.1542, allocations: 55.44 kB / 0.5898 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002195/0.1544, allocations: 66.52 kB / 0.5898 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1544, allocations: 4 kB / 0.5898 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002902/0.1547, allocations: 105.4 kB / 0.5899 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.1548, allocations: 10.66 kB / 0.5899 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1548, allocations: 0 / 0.5899 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.1548, allocations: 3.938 kB / 0.5899 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.1549, allocations: 15.92 kB / 0.59 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.1549, allocations: 0 / 0.59 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.247e-05/0.155, allocations: 19.98 kB / 0.59 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.287e-06/0.155, allocations: 4 kB / 0.59 GB, free: 14.54 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 9.323e-05/0.1551, allocations: 125.8 kB / 0.5901 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.916e-05/0.1552, allocations: 15.81 kB / 0.5901 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.592e-05/0.1552, allocations: 25.17 kB / 0.5901 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.1552, allocations: 0 / 0.5901 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1552, allocations: 0 / 0.5901 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.1552, allocations: 0 / 0.5901 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001577/0.1554, allocations: 221.5 kB / 0.5904 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.1554, allocations: 4 kB / 0.5904 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.246e-05/0.1555, allocations: 11.98 kB / 0.5904 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.1555, allocations: 0 / 0.5904 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.1555, allocations: 7.938 kB / 0.5904 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.1555, allocations: 0 / 0.5904 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1555, allocations: 0 / 0.5904 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003031/0.1558, allocations: 128.8 kB / 0.5905 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.552e-05/0.1559, allocations: 88.92 kB / 0.5906 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.422e-05/0.1559, allocations: 3.938 kB / 0.5906 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.605e-05/0.156, allocations: 11.98 kB / 0.5906 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.857e-05/0.1561, allocations: 4 kB / 0.5906 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.529e-05/0.1561, allocations: 7.984 kB / 0.5906 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001623/0.1563, allocations: 184.5 kB / 0.5908 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.21e-07/0.1563, allocations: 0 / 0.5908 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002314/0.1565, allocations: 31.89 kB / 0.5908 GB, free: 13.59 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.0006811/0.1572, allocations: 0.6776 MB / 0.5915 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003259/0.1575, allocations: 56.08 kB / 0.5915 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.1576, allocations: 0 / 0.5915 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001182/0.1577, allocations: 35.89 kB / 0.5916 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000309/0.158, allocations: 43.84 kB / 0.5916 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/0.16, allocations: 1.735 MB / 0.5933 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002541/0.1603, allocations: 0.7197 MB / 0.594 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.613e-05/0.1604, allocations: 20.61 kB / 0.594 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.903e-05/0.1604, allocations: 39.42 kB / 0.5941 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1604, allocations: 0 / 0.5941 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0199/0.1804, allocations: 3.55 MB / 0.5975 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.434/7.615, allocations: 8.375 kB / 0.5975 GB, free: 6.664 MB / 0.4981 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)