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.001006/0.00101, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001181/0.001181, allocations: 192.1 kB / 16.26 MB, free: 6.621 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.363/1.363, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7525/0.7525, allocations: 132.2 MB / 422.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 60.19 kB / 0.5014 GB, free: 9.008 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.1632, allocations: 80.2 MB / 0.5797 GB, free: 9.027 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003138/0.1664, allocations: 1.698 MB / 0.5813 GB, free: 7.316 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008261/0.1672, allocations: 0.5377 MB / 0.5819 GB, free: 6.773 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.664e-05/0.1673, allocations: 8 kB / 0.5819 GB, free: 6.766 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001793/0.1675, allocations: 19.86 kB / 0.5819 GB, free: 6.746 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002207/0.1677, allocations: 59.72 kB / 0.5819 GB, free: 6.688 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001448/0.1679, allocations: 59.94 kB / 0.582 GB, free: 6.629 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001659/0.1681, allocations: 135.5 kB / 0.5821 GB, free: 6.496 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/0.1682, allocations: 45.47 kB / 0.5822 GB, free: 6.445 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001125/0.1684, allocations: 55.78 kB / 0.5822 GB, free: 6.391 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000103/0.1685, allocations: 71.62 kB / 0.5823 GB, free: 6.32 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.589e-05/0.1685, allocations: 8 kB / 0.5823 GB, free: 6.312 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.452e-05/0.1686, allocations: 19.94 kB / 0.5823 GB, free: 6.293 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.987e-05/0.1686, allocations: 47.83 kB / 0.5824 GB, free: 6.246 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.669e-05/0.1687, allocations: 55.61 kB / 0.5824 GB, free: 6.191 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001785/0.1689, allocations: 143.7 kB / 0.5826 GB, free: 6.051 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1689, allocations: 4 kB / 0.5826 GB, free: 6.047 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1689, allocations: 0 / 0.5826 GB, free: 6.047 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.1689, allocations: 0 / 0.5826 GB, free: 6.047 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.0005903/0.1695, allocations: 470.5 kB / 0.583 GB, free: 5.539 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.1696, allocations: 12.02 kB / 0.583 GB, free: 5.527 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.31e-05/0.1696, allocations: 38.75 kB / 0.5831 GB, free: 5.48 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.413e-05/0.1697, allocations: 20.66 kB / 0.5831 GB, free: 5.461 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002381/0.1699, allocations: 229.6 kB / 0.5833 GB, free: 5.199 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.1699, allocations: 8.375 kB / 0.5833 GB, free: 5.191 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.27e-05/0.1699, allocations: 4.375 kB / 0.5833 GB, free: 5.188 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002627/0.1702, allocations: 113.7 kB / 0.5834 GB, free: 5.07 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.1702, allocations: 3.984 kB / 0.5834 GB, free: 5.066 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.1702, allocations: 0 / 0.5834 GB, free: 5.066 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.1703, allocations: 0 / 0.5834 GB, free: 5.066 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002187/0.1705, allocations: 67.92 kB / 0.5835 GB, free: 5 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005242/0.171, allocations: 384.4 kB / 0.5838 GB, free: 4.574 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001293/0.1711, allocations: 42.55 kB / 0.5839 GB, free: 4.523 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.898e-05/0.1713, allocations: 28.91 kB / 0.5839 GB, free: 4.492 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.144e-05/0.1713, allocations: 0 / 0.5839 GB, free: 4.492 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00024/0.1715, allocations: 101 kB / 0.584 GB, free: 4.375 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.1715, allocations: 0 / 0.584 GB, free: 4.375 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004109/0.1719, allocations: 121.4 kB / 0.5841 GB, free: 4.25 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.587e-05/0.172, allocations: 77.11 kB / 0.5842 GB, free: 4.156 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002342/0.1722, allocations: 260.9 kB / 0.5845 GB, free: 3.895 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.746e-05/0.1723, allocations: 25.7 kB / 0.5845 GB, free: 3.863 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.661e-05/0.1723, allocations: 128.1 kB / 0.5846 GB, free: 3.734 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.769e-05/0.1724, allocations: 7.906 kB / 0.5846 GB, free: 3.727 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.636e-05/0.1724, allocations: 17.7 kB / 0.5846 GB, free: 3.703 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.1725, allocations: 330.8 kB / 0.5849 GB, free: 3.371 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.1726, allocations: 27.91 kB / 0.585 GB, free: 3.344 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/0.1728, allocations: 51.34 kB / 0.585 GB, free: 3.281 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001925/0.173, allocations: 66.56 kB / 0.5851 GB, free: 3.207 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.173, allocations: 0 / 0.5851 GB, free: 3.207 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002543/0.1732, allocations: 105.3 kB / 0.5852 GB, free: 3.098 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.1732, allocations: 8.094 kB / 0.5852 GB, free: 3.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.1733, allocations: 0 / 0.5852 GB, free: 3.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.1733, allocations: 11.88 kB / 0.5852 GB, free: 3.078 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.1734, allocations: 15.92 kB / 0.5852 GB, free: 3.062 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.1734, allocations: 0 / 0.5852 GB, free: 3.062 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.433e-05/0.1735, allocations: 15.98 kB / 0.5852 GB, free: 3.047 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-06/0.1735, allocations: 0 / 0.5852 GB, free: 3.047 MB / 494.1 MB 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.927e-05/0.1736, allocations: 130.4 kB / 0.5854 GB, free: 2.91 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.602e-05/0.1736, allocations: 19.81 kB / 0.5854 GB, free: 2.891 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.723e-05/0.1737, allocations: 25.17 kB / 0.5854 GB, free: 2.863 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-06/0.1737, allocations: 0 / 0.5854 GB, free: 2.863 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1737, allocations: 4 kB / 0.5854 GB, free: 2.859 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.1737, allocations: 0 / 0.5854 GB, free: 2.859 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001684/0.1739, allocations: 217.5 kB / 0.5856 GB, free: 2.598 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1739, allocations: 0 / 0.5856 GB, free: 2.598 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.661e-05/0.174, allocations: 11.98 kB / 0.5856 GB, free: 2.586 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.174, allocations: 3.984 kB / 0.5856 GB, free: 2.582 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.174, allocations: 3.938 kB / 0.5856 GB, free: 2.578 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.174, allocations: 4 kB / 0.5856 GB, free: 2.574 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.174, allocations: 4 kB / 0.5856 GB, free: 2.57 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002651/0.1743, allocations: 125 kB / 0.5858 GB, free: 2.43 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.889e-05/0.1743, allocations: 85.02 kB / 0.5858 GB, free: 2.328 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.488e-05/0.1743, allocations: 7.938 kB / 0.5858 GB, free: 2.32 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.011e-05/0.1744, allocations: 15.98 kB / 0.5859 GB, free: 2.305 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.914e-05/0.1745, allocations: 7.984 kB / 0.5859 GB, free: 2.297 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.1745, allocations: 4 kB / 0.5859 GB, free: 2.293 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000153/0.1747, allocations: 192.5 kB / 0.5861 GB, free: 2.102 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1747, allocations: 0 / 0.5861 GB, free: 2.102 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002069/0.1749, allocations: 19.91 kB / 0.5861 GB, free: 2.082 MB / 494.1 MB 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.0006146/0.1755, allocations: 0.6886 MB / 0.5867 GB, free: 1.367 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002572/0.1758, allocations: 55.88 kB / 0.5868 GB, free: 1.312 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1758, allocations: 4 kB / 0.5868 GB, free: 1.309 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.1759, allocations: 31.91 kB / 0.5868 GB, free: 1.277 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002729/0.1762, allocations: 38.19 kB / 0.5869 GB, free: 1.246 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001888/0.1781, allocations: 1.782 MB / 0.5886 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002502/0.1783, allocations: 0.7197 MB / 0.5893 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.09e-05/0.1784, allocations: 12.55 kB / 0.5893 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.858e-05/0.1785, allocations: 47.41 kB / 0.5894 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of SimCode: time 3.31e-07/0.1785, allocations: 0 / 0.5894 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07857/0.257, allocations: 3.37 MB / 0.5927 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002192/0.2573, allocations: 187.3 kB / 0.5928 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.944/2.201, allocations: 0 / 0.5928 GB, free: 11.09 MB / 0.4981 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)