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.005058/0.005058, allocations: 98.56 kB / 15.73 MB, free: 6.008 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.001218/0.001218, allocations: 195.8 kB / 16.68 MB, free: 5.934 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.402/1.402, 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.904/0.904, allocations: 135.6 MB / 426.1 MB, free: 3.691 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002017/0.002017, allocations: 67.12 kB / 0.5857 GB, free: 21.46 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.159/0.1611, allocations: 81.02 MB / 0.6648 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002904/0.164, allocations: 1.639 MB / 0.6664 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009379/0.165, allocations: 0.5339 MB / 0.667 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.942e-05/0.1651, allocations: 4 kB / 0.667 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001843/0.1653, allocations: 23.73 kB / 0.667 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002745/0.1656, allocations: 67.67 kB / 0.667 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001579/0.1657, allocations: 63.91 kB / 0.6671 GB, free: 3.344 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002064/0.1659, allocations: 135.5 kB / 0.6672 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001628/0.1661, allocations: 53.47 kB / 0.6673 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.1662, allocations: 47.84 kB / 0.6673 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001241/0.1664, allocations: 63.69 kB / 0.6674 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.212e-05/0.1664, allocations: 8 kB / 0.6674 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.439e-05/0.1665, allocations: 27.92 kB / 0.6674 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.626e-05/0.1666, allocations: 47.83 kB / 0.6675 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.289e-05/0.1666, allocations: 55.61 kB / 0.6675 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002415/0.1669, allocations: 151.5 kB / 0.6677 GB, free: 2.758 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/0.1669, allocations: 0 / 0.6677 GB, free: 2.758 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.142e-06/0.1669, allocations: 7.938 kB / 0.6677 GB, free: 2.75 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.64e-06/0.1669, allocations: 0 / 0.6677 GB, free: 2.75 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.0006874/0.1676, allocations: 470.5 kB / 0.6681 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.1677, allocations: 13.11 kB / 0.6681 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.515e-05/0.1677, allocations: 38.73 kB / 0.6682 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.289e-05/0.1678, allocations: 16.84 kB / 0.6682 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003358/0.1681, allocations: 256.8 kB / 0.6684 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.544e-05/0.1681, allocations: 8.359 kB / 0.6684 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.247e-05/0.1682, allocations: 4.375 kB / 0.6685 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002996/0.1685, allocations: 112.9 kB / 0.6686 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.1685, allocations: 0 / 0.6686 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.1685, allocations: 4 kB / 0.6686 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.802e-06/0.1685, allocations: 4 kB / 0.6686 GB, free: 1.742 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002414/0.1688, allocations: 59.94 kB / 0.6686 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005986/0.1694, allocations: 380.5 kB / 0.669 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001498/0.1695, allocations: 42.55 kB / 0.669 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001143/0.1697, allocations: 32.84 kB / 0.6691 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.168e-05/0.1697, allocations: 0 / 0.6691 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002293/0.1699, allocations: 97.08 kB / 0.6692 GB, free: 1.062 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.1699, allocations: 0 / 0.6692 GB, free: 1.062 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004383/0.1704, allocations: 125.5 kB / 0.6693 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.386e-05/0.1704, allocations: 85.05 kB / 0.6694 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002583/0.1707, allocations: 253 kB / 0.6696 GB, free: 0.5781 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.646e-05/0.1707, allocations: 33.7 kB / 0.6696 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.582e-05/0.1708, allocations: 120.1 kB / 0.6697 GB, free: 428 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.04e-05/0.1708, allocations: 11.84 kB / 0.6698 GB, free: 416 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.999e-05/0.1709, allocations: 21.7 kB / 0.6698 GB, free: 388 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001416/0.171, allocations: 326.8 kB / 0.6701 GB, free: 52 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.1712, allocations: 27.97 kB / 0.6701 GB, free: 24 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000136/0.1713, allocations: 43.41 kB / 0.6702 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002227/0.1715, allocations: 74.5 kB / 0.6702 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1715, allocations: 0 / 0.6702 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000285/0.1718, allocations: 101.5 kB / 0.6703 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.1719, allocations: 8.094 kB / 0.6703 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.1719, allocations: 4 kB / 0.6703 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.1719, allocations: 3.938 kB / 0.6703 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.172, allocations: 15.98 kB / 0.6704 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.172, allocations: 3.984 kB / 0.6704 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.448e-05/0.1721, allocations: 11.98 kB / 0.6704 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.878e-06/0.1721, allocations: 0 / 0.6704 GB, free: 15.73 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.000115/0.1723, allocations: 133.8 kB / 0.6705 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.064e-05/0.1723, allocations: 23.86 kB / 0.6705 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.061e-05/0.1723, allocations: 21.17 kB / 0.6705 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1724, allocations: 4 kB / 0.6705 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.1724, allocations: 0 / 0.6705 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.1724, allocations: 288 / 0.6705 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001942/0.1726, allocations: 217.6 kB / 0.6707 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1726, allocations: 0 / 0.6707 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.182e-05/0.1727, allocations: 15.92 kB / 0.6708 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.1727, allocations: 7.922 kB / 0.6708 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.1727, allocations: 7.938 kB / 0.6708 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1727, allocations: 4 kB / 0.6708 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1727, allocations: 0 / 0.6708 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002968/0.173, allocations: 121 kB / 0.6709 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 6.272e-05/0.1731, allocations: 89.02 kB / 0.671 GB, free: 15 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.252e-05/0.1731, allocations: 3.938 kB / 0.671 GB, free: 15 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.288e-05/0.1732, allocations: 11.98 kB / 0.671 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.67e-05/0.1732, allocations: 11.98 kB / 0.671 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.246e-05/0.1733, allocations: 4 kB / 0.671 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002049/0.1735, allocations: 188.5 kB / 0.6712 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.7e-07/0.1735, allocations: 0 / 0.6712 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002218/0.1737, allocations: 23.89 kB / 0.6712 GB, free: 14.76 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.0007061/0.1744, allocations: 0.6727 MB / 0.6719 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002848/0.1747, allocations: 63.88 kB / 0.6719 GB, free: 14 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.1747, allocations: 0 / 0.6719 GB, free: 14 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001142/0.1749, allocations: 31.91 kB / 0.672 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002973/0.1752, allocations: 39.91 kB / 0.672 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002177/0.1774, allocations: 1.763 MB / 0.6737 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003435/0.1777, allocations: 0.7197 MB / 0.6744 GB, free: 11.33 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.854e-05/0.1778, allocations: 16.72 kB / 0.6744 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.297e-05/0.1779, allocations: 43.42 kB / 0.6745 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of SimCode: time 2.61e-07/0.1779, allocations: 0 / 0.6745 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02488/0.2028, allocations: 3.598 MB / 0.678 GB, free: 7.758 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.717/7.92, allocations: 10.84 kB / 0.678 GB, free: 7.754 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter.fmu > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)