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.001468/0.001468, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001672/0.001672, allocations: 193.2 kB / 16.14 MB, free: 6.672 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.389/1.389, allocations: 222.9 MB / 239.8 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.027/1.027, allocations: 135.1 MB / 425.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00165/0.00165, allocations: 65.27 kB / 0.5048 GB, free: 5.664 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1955/0.1972, allocations: 80.93 MB / 0.5838 GB, free: 4.898 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003868/0.2011, allocations: 1.678 MB / 0.5855 GB, free: 3.203 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.2023, allocations: 0.534 MB / 0.586 GB, free: 2.664 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000184/0.2025, allocations: 7.938 kB / 0.586 GB, free: 2.656 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002988/0.2029, allocations: 23.84 kB / 0.586 GB, free: 2.633 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003291/0.2032, allocations: 47.81 kB / 0.5861 GB, free: 2.586 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002269/0.2035, allocations: 63.88 kB / 0.5861 GB, free: 2.523 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002485/0.2037, allocations: 135.5 kB / 0.5862 GB, free: 2.391 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002074/0.2039, allocations: 41.45 kB / 0.5863 GB, free: 2.344 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00017/0.2041, allocations: 55.77 kB / 0.5863 GB, free: 2.289 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001495/0.2043, allocations: 63.64 kB / 0.5864 GB, free: 2.227 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.944e-05/0.2043, allocations: 8 kB / 0.5864 GB, free: 2.219 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.576e-05/0.2044, allocations: 23.92 kB / 0.5864 GB, free: 2.195 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001144/0.2045, allocations: 39.84 kB / 0.5865 GB, free: 2.156 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.416e-05/0.2046, allocations: 59.59 kB / 0.5865 GB, free: 2.098 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002126/0.2049, allocations: 135.7 kB / 0.5867 GB, free: 1.965 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.726e-06/0.2049, allocations: 4 kB / 0.5867 GB, free: 1.961 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2049, allocations: 0 / 0.5867 GB, free: 1.961 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.2049, allocations: 0 / 0.5867 GB, free: 1.961 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.0006904/0.2056, allocations: 466.6 kB / 0.5871 GB, free: 1.457 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.2056, allocations: 8.031 kB / 0.5871 GB, free: 1.449 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.453e-05/0.2057, allocations: 46.67 kB / 0.5872 GB, free: 1.395 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.894e-05/0.2058, allocations: 20.66 kB / 0.5872 GB, free: 1.375 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003251/0.2061, allocations: 225 kB / 0.5874 GB, free: 1.117 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.2061, allocations: 8.375 kB / 0.5874 GB, free: 1.109 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.266e-05/0.2061, allocations: 4.375 kB / 0.5874 GB, free: 1.105 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002973/0.2064, allocations: 112.8 kB / 0.5875 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.2065, allocations: 4 kB / 0.5875 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.2065, allocations: 0 / 0.5875 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.2065, allocations: 3.938 kB / 0.5875 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002233/0.2067, allocations: 63.94 kB / 0.5876 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006937/0.2074, allocations: 392.4 kB / 0.5879 GB, free: 500 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001443/0.2076, allocations: 38.56 kB / 0.588 GB, free: 452 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.2077, allocations: 24.89 kB / 0.588 GB, free: 424 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.82e-05/0.2077, allocations: 0 / 0.588 GB, free: 424 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000338/0.2081, allocations: 109.1 kB / 0.5881 GB, free: 296 kB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.2081, allocations: 0 / 0.5881 GB, free: 296 kB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.000462/0.2086, allocations: 121.3 kB / 0.5882 GB, free: 168 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.415e-05/0.2086, allocations: 81.11 kB / 0.5883 GB, free: 68 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002977/0.2089, allocations: 252.9 kB / 0.5885 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.209, allocations: 33.7 kB / 0.5886 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.547e-05/0.2091, allocations: 128 kB / 0.5887 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.035e-05/0.2091, allocations: 3.906 kB / 0.5887 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.995e-05/0.2091, allocations: 17.72 kB / 0.5887 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.2093, allocations: 330.8 kB / 0.589 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.2094, allocations: 23.92 kB / 0.5891 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.2095, allocations: 47.41 kB / 0.5891 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002158/0.2097, allocations: 74.45 kB / 0.5892 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2098, allocations: 4.031 kB / 0.5892 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002818/0.21, allocations: 101.4 kB / 0.5893 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.2101, allocations: 6.656 kB / 0.5893 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.2101, allocations: 4 kB / 0.5893 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.2101, allocations: 7.875 kB / 0.5893 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.2102, allocations: 11.98 kB / 0.5893 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.084e-06/0.2103, allocations: 96 / 0.5893 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.941e-05/0.2104, allocations: 19.89 kB / 0.5893 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.205e-06/0.2104, allocations: 3.938 kB / 0.5893 GB, free: 14.96 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.0001253/0.2105, allocations: 129.8 kB / 0.5895 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.365e-05/0.2106, allocations: 15.81 kB / 0.5895 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.326e-05/0.2106, allocations: 21.17 kB / 0.5895 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.2106, allocations: 4 kB / 0.5895 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.2106, allocations: 0 / 0.5895 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.2106, allocations: 0 / 0.5895 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002237/0.2109, allocations: 225.5 kB / 0.5897 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2109, allocations: 0 / 0.5897 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.513e-05/0.211, allocations: 11.98 kB / 0.5897 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.211, allocations: 0 / 0.5897 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.211, allocations: 7.938 kB / 0.5897 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.211, allocations: 3.984 kB / 0.5897 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.211, allocations: 0 / 0.5897 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003238/0.2113, allocations: 124.8 kB / 0.5898 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.012e-05/0.2114, allocations: 88.92 kB / 0.5899 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/0.2114, allocations: 3.938 kB / 0.5899 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.67e-05/0.2115, allocations: 7.984 kB / 0.5899 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.423e-05/0.2116, allocations: 11.98 kB / 0.59 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.508e-05/0.2116, allocations: 4 kB / 0.59 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001939/0.2118, allocations: 188.5 kB / 0.5901 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2118, allocations: 0 / 0.5901 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002343/0.2121, allocations: 27.91 kB / 0.5902 GB, free: 14 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.0007473/0.2128, allocations: 0.6824 MB / 0.5908 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002929/0.2131, allocations: 63.81 kB / 0.5909 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2131, allocations: 0 / 0.5909 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001128/0.2133, allocations: 28.16 kB / 0.5909 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003208/0.2136, allocations: 44.39 kB / 0.591 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002279/0.2159, allocations: 1.761 MB / 0.5927 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002892/0.2162, allocations: 0.7201 MB / 0.5934 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.954e-05/0.2163, allocations: 12.55 kB / 0.5934 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.94e-05/0.2164, allocations: 47.41 kB / 0.5934 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of SimCode: time 1.91e-07/0.2164, allocations: 0 / 0.5934 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01559/0.232, allocations: 3.3 MB / 0.5967 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001912/0.2322, allocations: 188.4 kB / 0.5968 GB, free: 7.07 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.767/1.999, allocations: 0 / 0.5968 GB, free: 7.07 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 & /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)