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.001204/0.001204, allocations: 108 kB / 15.6 MB, free: 132 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.001162/0.001162, allocations: 194.1 kB / 16.53 MB, free: 6.391 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.34/1.34, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9922/0.9922, allocations: 135.1 MB / 425.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002475/0.002476, allocations: 59.72 kB / 0.5054 GB, free: 5.25 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1927/0.1952, allocations: 80.94 MB / 0.5845 GB, free: 4.473 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.004129/0.1994, allocations: 1.621 MB / 0.5861 GB, free: 2.836 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.2006, allocations: 0.5455 MB / 0.5866 GB, free: 2.285 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001545/0.2008, allocations: 0 / 0.5866 GB, free: 2.285 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002476/0.2011, allocations: 27.78 kB / 0.5866 GB, free: 2.258 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003323/0.2014, allocations: 59.06 kB / 0.5867 GB, free: 2.203 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002119/0.2016, allocations: 71.84 kB / 0.5867 GB, free: 2.133 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002203/0.2019, allocations: 131.6 kB / 0.5869 GB, free: 2.004 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.2021, allocations: 41.48 kB / 0.5869 GB, free: 1.957 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000155/0.2022, allocations: 63.7 kB / 0.587 GB, free: 1.895 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001379/0.2024, allocations: 55.7 kB / 0.587 GB, free: 1.84 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.89e-05/0.2024, allocations: 11.94 kB / 0.587 GB, free: 1.828 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.485e-05/0.2025, allocations: 31.98 kB / 0.5871 GB, free: 1.797 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.2026, allocations: 47.83 kB / 0.5871 GB, free: 1.75 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.215e-05/0.2027, allocations: 67.53 kB / 0.5872 GB, free: 1.684 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000241/0.203, allocations: 135.7 kB / 0.5873 GB, free: 1.551 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.203, allocations: 0 / 0.5873 GB, free: 1.551 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.572e-06/0.203, allocations: 4 kB / 0.5873 GB, free: 1.547 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.487e-05/0.203, allocations: 0 / 0.5873 GB, free: 1.547 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.000744/0.2038, allocations: 454.7 kB / 0.5877 GB, free: 1.055 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.2038, allocations: 19.97 kB / 0.5878 GB, free: 1.035 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.059e-05/0.2039, allocations: 34.75 kB / 0.5878 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.55e-05/0.204, allocations: 28.64 kB / 0.5878 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002785/0.2042, allocations: 224.9 kB / 0.588 GB, free: 0.707 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.2043, allocations: 8.375 kB / 0.588 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.478e-05/0.2043, allocations: 4.359 kB / 0.5881 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003337/0.2046, allocations: 113.8 kB / 0.5882 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.2047, allocations: 0 / 0.5882 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.753e-05/0.2047, allocations: 8 kB / 0.5882 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.2047, allocations: 0 / 0.5882 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002495/0.2049, allocations: 71.88 kB / 0.5882 GB, free: 0.5 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006493/0.2056, allocations: 376.5 kB / 0.5886 GB, free: 84 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001413/0.2058, allocations: 46.48 kB / 0.5886 GB, free: 28 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001311/0.2059, allocations: 32.89 kB / 0.5887 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.231e-05/0.2059, allocations: 3.984 kB / 0.5887 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003165/0.2062, allocations: 101.1 kB / 0.5888 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.2063, allocations: 0 / 0.5888 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004632/0.2067, allocations: 121.3 kB / 0.5889 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.873e-05/0.2068, allocations: 77.11 kB / 0.589 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002526/0.2071, allocations: 260.9 kB / 0.5892 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.971e-05/0.2071, allocations: 25.7 kB / 0.5892 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.773e-05/0.2072, allocations: 132 kB / 0.5894 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.2072, allocations: 7.906 kB / 0.5894 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.878e-05/0.2072, allocations: 17.72 kB / 0.5894 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.2074, allocations: 326.8 kB / 0.5897 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.2075, allocations: 19.97 kB / 0.5897 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001226/0.2076, allocations: 59.34 kB / 0.5898 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002201/0.2078, allocations: 66.45 kB / 0.5898 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2079, allocations: 0 / 0.5898 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002952/0.2082, allocations: 109.4 kB / 0.5899 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.2082, allocations: 4 kB / 0.5899 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.2082, allocations: 0 / 0.5899 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.2082, allocations: 3.938 kB / 0.5899 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.2083, allocations: 15.92 kB / 0.59 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.2084, allocations: 4 kB / 0.59 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.818e-05/0.2085, allocations: 15.98 kB / 0.59 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.2085, 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 0.0001277/0.2086, allocations: 125.8 kB / 0.5901 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.538e-05/0.2087, allocations: 19.75 kB / 0.5901 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.124e-05/0.2087, allocations: 21.19 kB / 0.5901 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.2087, allocations: 4.266 kB / 0.5901 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.2087, allocations: 0 / 0.5901 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.2087, allocations: 3.984 kB / 0.5902 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002035/0.2089, allocations: 221.5 kB / 0.5904 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.209, allocations: 4 kB / 0.5904 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.525e-05/0.209, allocations: 11.98 kB / 0.5904 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.2091, allocations: 0 / 0.5904 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.2091, allocations: 3.938 kB / 0.5904 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2091, allocations: 0 / 0.5904 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2091, allocations: 0 / 0.5904 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003028/0.2094, allocations: 124.9 kB / 0.5905 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.369e-05/0.2095, allocations: 88.92 kB / 0.5906 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.528e-05/0.2095, allocations: 3.938 kB / 0.5906 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.449e-05/0.2096, allocations: 15.98 kB / 0.5906 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.367e-05/0.2096, allocations: 0 / 0.5906 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.587e-05/0.2097, allocations: 11.92 kB / 0.5906 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001907/0.2099, allocations: 184.5 kB / 0.5908 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2099, allocations: 0 / 0.5908 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000231/0.2101, allocations: 27.91 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.0007678/0.2109, allocations: 0.6895 MB / 0.5915 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003075/0.2112, allocations: 55.83 kB / 0.5915 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.2112, allocations: 0 / 0.5915 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001126/0.2113, allocations: 31.97 kB / 0.5916 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003163/0.2117, allocations: 38.62 kB / 0.5916 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002202/0.2139, allocations: 1.739 MB / 0.5933 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002755/0.2142, allocations: 0.7197 MB / 0.594 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.575e-05/0.2143, allocations: 20.72 kB / 0.594 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.003e-05/0.2143, allocations: 43.42 kB / 0.5941 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of SimCode: time 4.41e-07/0.2143, allocations: 0 / 0.5941 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02334/0.2377, allocations: 3.551 MB / 0.5975 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.379/7.617, allocations: 0.6562 kB / 0.5975 GB, free: 6.648 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)