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.006067/0.006067, allocations: 102.9 kB / 15.73 MB, free: 6.043 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.001148/0.001148, allocations: 193.5 kB / 16.67 MB, free: 5.961 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.297/1.297, 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/package.mo): time 0.7961/0.7961, allocations: 132.2 MB / 422.7 MB, free: 6.586 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 66.17 kB / 0.5808 GB, free: 24.12 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1493/0.1508, allocations: 80.22 MB / 0.6592 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003016/0.1538, allocations: 1.628 MB / 0.6608 GB, free: 9.137 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009448/0.1548, allocations: 0.5416 MB / 0.6613 GB, free: 8.59 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.1549, allocations: 4 kB / 0.6613 GB, free: 8.586 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001875/0.1551, allocations: 35.73 kB / 0.6613 GB, free: 8.551 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003087/0.1555, allocations: 61.91 kB / 0.6614 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001781/0.1556, allocations: 67.86 kB / 0.6615 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002012/0.1559, allocations: 131.5 kB / 0.6616 GB, free: 8.297 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.156, allocations: 53.39 kB / 0.6616 GB, free: 8.238 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001343/0.1562, allocations: 51.84 kB / 0.6617 GB, free: 8.188 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001287/0.1563, allocations: 63.69 kB / 0.6617 GB, free: 8.125 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.704e-05/0.1563, allocations: 8 kB / 0.6617 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.878e-05/0.1564, allocations: 27.92 kB / 0.6618 GB, free: 8.09 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.393e-05/0.1565, allocations: 51.83 kB / 0.6618 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.078e-05/0.1566, allocations: 55.61 kB / 0.6619 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002245/0.1568, allocations: 146.2 kB / 0.662 GB, free: 7.844 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.1568, allocations: 4 kB / 0.662 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.326e-06/0.1568, allocations: 0 / 0.662 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.111e-05/0.1569, allocations: 3.938 kB / 0.662 GB, free: 7.836 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.0006618/0.1575, allocations: 463.5 kB / 0.6625 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.1576, allocations: 8.031 kB / 0.6625 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.264e-05/0.1576, allocations: 42.73 kB / 0.6625 GB, free: 7.277 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.604e-05/0.1577, allocations: 16.75 kB / 0.6625 GB, free: 7.262 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003478/0.158, allocations: 248.7 kB / 0.6628 GB, free: 6.977 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.1581, allocations: 8.375 kB / 0.6628 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.841e-05/0.1581, allocations: 4.375 kB / 0.6628 GB, free: 6.965 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002943/0.1584, allocations: 113.8 kB / 0.6629 GB, free: 6.848 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.1584, allocations: 3.984 kB / 0.6629 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/0.1584, allocations: 0 / 0.6629 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.1584, allocations: 0 / 0.6629 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002211/0.1587, allocations: 67.94 kB / 0.663 GB, free: 6.777 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000615/0.1593, allocations: 376.5 kB / 0.6633 GB, free: 6.359 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001386/0.1594, allocations: 42.55 kB / 0.6634 GB, free: 6.309 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.1595, allocations: 28.89 kB / 0.6634 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.74e-05/0.1596, allocations: 3.938 kB / 0.6634 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002269/0.1598, allocations: 93.09 kB / 0.6635 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.313e-06/0.1598, allocations: 0 / 0.6635 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004309/0.1603, allocations: 125.4 kB / 0.6636 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.049e-05/0.1603, allocations: 77.11 kB / 0.6637 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002447/0.1606, allocations: 260.9 kB / 0.6639 GB, free: 5.676 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/0.1606, allocations: 25.7 kB / 0.6639 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.893e-05/0.1607, allocations: 132 kB / 0.6641 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.744e-05/0.1607, allocations: 3.906 kB / 0.6641 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.001e-05/0.1607, allocations: 25.7 kB / 0.6641 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.1609, allocations: 326.8 kB / 0.6644 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.161, allocations: 19.97 kB / 0.6644 GB, free: 5.129 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001131/0.1611, allocations: 47.41 kB / 0.6645 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001948/0.1613, allocations: 70.5 kB / 0.6645 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.1613, allocations: 4 kB / 0.6645 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002605/0.1616, allocations: 105.5 kB / 0.6646 GB, free: 4.879 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.1616, allocations: 7.938 kB / 0.6646 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.1616, allocations: 0 / 0.6646 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.1616, allocations: 7.938 kB / 0.6647 GB, free: 4.863 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.1617, allocations: 11.98 kB / 0.6647 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.1617, allocations: 0 / 0.6647 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.139e-05/0.1618, allocations: 15.89 kB / 0.6647 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-06/0.1619, allocations: 0 / 0.6647 GB, free: 4.836 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.0001016/0.162, allocations: 146.5 kB / 0.6648 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.989e-05/0.162, allocations: 15.81 kB / 0.6648 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.486e-05/0.162, allocations: 21.17 kB / 0.6649 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.162, allocations: 0 / 0.6649 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.1621, allocations: 0 / 0.6649 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.1621, allocations: 4 kB / 0.6649 GB, free: 4.645 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001647/0.1622, allocations: 221.6 kB / 0.6651 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1622, allocations: 0 / 0.6651 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.113e-05/0.1623, allocations: 15.98 kB / 0.6651 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.1623, allocations: 0 / 0.6651 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.686e-06/0.1623, allocations: 11.88 kB / 0.6651 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1624, allocations: 0 / 0.6651 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.1624, allocations: 4.281 kB / 0.6651 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002609/0.1626, allocations: 116.9 kB / 0.6652 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.85e-05/0.1627, allocations: 88.92 kB / 0.6653 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.583e-05/0.1627, allocations: 11.92 kB / 0.6653 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.273e-05/0.1628, allocations: 11.98 kB / 0.6653 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.414e-05/0.1629, allocations: 8 kB / 0.6653 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.139e-05/0.1629, allocations: 4 kB / 0.6653 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001672/0.1631, allocations: 188.5 kB / 0.6655 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1631, allocations: 0 / 0.6655 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002486/0.1633, allocations: 20 kB / 0.6655 GB, free: 3.871 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.0006956/0.164, allocations: 0.6813 MB / 0.6662 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002843/0.1643, allocations: 59.88 kB / 0.6663 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1643, allocations: 0 / 0.6663 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.1644, allocations: 35.91 kB / 0.6663 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/0.1647, allocations: 39.88 kB / 0.6663 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002005/0.1668, allocations: 1.747 MB / 0.668 GB, free: 1.191 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002484/0.167, allocations: 0.7236 MB / 0.6687 GB, free: 452 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.047e-05/0.1671, allocations: 12.55 kB / 0.6688 GB, free: 440 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.862e-05/0.1672, allocations: 43.42 kB / 0.6688 GB, free: 396 kB / 0.4981 GB Notification: Performance of SimCode: time 5.31e-07/0.1672, allocations: 0 / 0.6688 GB, free: 396 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01959/0.1868, allocations: 3.653 MB / 0.6724 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.647/7.834, allocations: 3.938 kB / 0.6724 GB, free: 12.84 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_IO_Files_Examples_JSONWriter.fmu > IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)