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.001039/0.001039, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.008299/0.008299, allocations: 171.3 kB / 16.26 MB, free: 6.613 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.374/1.374, allocations: 223.2 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7508/0.7508, allocations: 132.3 MB / 423.8 MB, free: 1.984 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002944/0.0002944, allocations: 8.812 kB / 0.5041 GB, free: 3.773 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3982/0.3985, allocations: 81.58 MB / 0.5837 GB, free: 3.867 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002197/0.4007, allocations: 1.353 MB / 0.5851 GB, free: 2.891 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009499/0.4017, allocations: 0.5256 MB / 0.5856 GB, free: 2.52 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.4018, allocations: 3.094 kB / 0.5856 GB, free: 2.52 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000192/0.402, allocations: 33.14 kB / 0.5856 GB, free: 2.496 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000271/0.4023, allocations: 53.88 kB / 0.5857 GB, free: 2.465 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002003/0.4025, allocations: 54.11 kB / 0.5857 GB, free: 2.441 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002238/0.4028, allocations: 127.5 kB / 0.5858 GB, free: 2.387 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001876/0.403, allocations: 48.7 kB / 0.5859 GB, free: 2.359 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001315/0.4031, allocations: 49.06 kB / 0.5859 GB, free: 2.336 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.4032, allocations: 50.61 kB / 0.586 GB, free: 2.312 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.802e-05/0.4033, allocations: 3.094 kB / 0.586 GB, free: 2.312 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.177e-05/0.4034, allocations: 16.38 kB / 0.586 GB, free: 2.309 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.4035, allocations: 34.66 kB / 0.586 GB, free: 2.297 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 7.501e-05/0.4036, allocations: 76.17 kB / 0.5861 GB, free: 2.23 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002246/0.4038, allocations: 136.3 kB / 0.5862 GB, free: 2.18 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.4038, allocations: 4.797 kB / 0.5862 GB, free: 2.176 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.4038, allocations: 0 / 0.5862 GB, free: 2.176 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.4038, allocations: 4.844 kB / 0.5862 GB, free: 2.172 MB / 430.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.0005942/0.4044, allocations: 446.8 kB / 0.5867 GB, free: 1.758 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.4045, allocations: 9.469 kB / 0.5867 GB, free: 1.758 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.964e-05/0.4046, allocations: 39.12 kB / 0.5867 GB, free: 1.715 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.342e-05/0.4046, allocations: 20.66 kB / 0.5867 GB, free: 1.703 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00026/0.4049, allocations: 246.5 kB / 0.587 GB, free: 1.457 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.177e-06/0.4049, allocations: 3.188 kB / 0.587 GB, free: 1.457 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.814e-05/0.4049, allocations: 4.062 kB / 0.587 GB, free: 1.457 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003376/0.4053, allocations: 118.3 kB / 0.5871 GB, free: 1.402 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.4053, allocations: 0 / 0.5871 GB, free: 1.402 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.588e-05/0.4053, allocations: 5.312 kB / 0.5871 GB, free: 1.398 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.4053, allocations: 1.438 kB / 0.5871 GB, free: 1.398 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002827/0.4056, allocations: 81.08 kB / 0.5872 GB, free: 1.383 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006971/0.4063, allocations: 392.3 kB / 0.5876 GB, free: 1.062 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001756/0.4065, allocations: 51 kB / 0.5876 GB, free: 1.031 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/0.4067, allocations: 35.08 kB / 0.5876 GB, free: 1.02 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.4067, allocations: 4.906 kB / 0.5876 GB, free: 1.016 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003346/0.407, allocations: 104.5 kB / 0.5877 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.302e-06/0.4071, allocations: 0 / 0.5877 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0005205/0.4076, allocations: 150 kB / 0.5879 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.035e-05/0.4076, allocations: 78.95 kB / 0.588 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003219/0.408, allocations: 254.6 kB / 0.5882 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.408, allocations: 26.77 kB / 0.5882 GB, free: 0.6055 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.36e-05/0.4081, allocations: 131.4 kB / 0.5883 GB, free: 500 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.315e-05/0.4081, allocations: 14.11 kB / 0.5884 GB, free: 488 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.848e-05/0.4081, allocations: 11.22 kB / 0.5884 GB, free: 472 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.87e-05/0.4082, allocations: 331.7 kB / 0.5887 GB, free: 140 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.4084, allocations: 27.7 kB / 0.5887 GB, free: 140 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/0.4085, allocations: 57.67 kB / 0.5888 GB, free: 100 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002624/0.4088, allocations: 86.97 kB / 0.5889 GB, free: 60 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.4088, allocations: 0 / 0.5889 GB, free: 60 kB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000335/0.4091, allocations: 124.1 kB / 0.589 GB, free: 0 / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.4091, allocations: 4.781 kB / 0.589 GB, free: 0 / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.4092, allocations: 1.891 kB / 0.589 GB, free: 0 / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.493e-05/0.4092, allocations: 5.391 kB / 0.589 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.4093, allocations: 18.98 kB / 0.589 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.4094, allocations: 5.234 kB / 0.589 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.4095, allocations: 18.09 kB / 0.589 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.969e-06/0.4095, allocations: 1.969 kB / 0.589 GB, free: 15.98 MB / 446.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 0.000126/0.4096, allocations: 131.9 kB / 0.5892 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.585e-05/0.4097, allocations: 20.69 kB / 0.5892 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.886e-05/0.4097, allocations: 22.66 kB / 0.5892 GB, free: 15.83 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.4097, allocations: 3.938 kB / 0.5892 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.4097, allocations: 5.375 kB / 0.5892 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.4097, allocations: 1.172 kB / 0.5892 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002237/0.41, allocations: 215.3 kB / 0.5894 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.41, allocations: 0.8438 kB / 0.5894 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.85e-05/0.4101, allocations: 15 kB / 0.5894 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.4101, allocations: 0.7969 kB / 0.5894 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.4101, allocations: 4.656 kB / 0.5894 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.4101, allocations: 8.906 kB / 0.5894 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.4101, allocations: 0.6094 kB / 0.5894 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00034/0.4105, allocations: 134.5 kB / 0.5896 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.73e-05/0.4106, allocations: 96.14 kB / 0.5897 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.303e-05/0.4106, allocations: 6.234 kB / 0.5897 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.4107, allocations: 16.92 kB / 0.5897 GB, free: 15.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.005e-05/0.4108, allocations: 5.047 kB / 0.5897 GB, free: 15.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.238e-05/0.4108, allocations: 4.812 kB / 0.5897 GB, free: 15.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002159/0.411, allocations: 191.3 kB / 0.5899 GB, free: 15.29 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.411, allocations: 4 kB / 0.5899 GB, free: 15.29 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002349/0.4112, allocations: 17.72 kB / 0.5899 GB, free: 15.29 MB / 446.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.0008225/0.4121, allocations: 0.698 MB / 0.5906 GB, free: 14.66 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003264/0.4124, allocations: 71.09 kB / 0.5906 GB, free: 14.65 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.4124, allocations: 5.031 kB / 0.5906 GB, free: 14.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001394/0.4126, allocations: 38.5 kB / 0.5907 GB, free: 14.64 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.4129, allocations: 47.7 kB / 0.5907 GB, free: 14.62 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002424/0.4153, allocations: 1.808 MB / 0.5925 GB, free: 13.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002769/0.4156, allocations: 0.7154 MB / 0.5932 GB, free: 12.55 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.861e-05/0.4157, allocations: 23.55 kB / 0.5932 GB, free: 12.54 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.022e-05/0.4158, allocations: 43.81 kB / 0.5933 GB, free: 12.51 MB / 446.1 MB Notification: Performance of SimCode: time 3.5e-07/0.4158, allocations: 0 / 0.5933 GB, free: 12.51 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01334/0.4292, allocations: 3.208 MB / 0.5964 GB, free: 12.02 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002222/0.4294, allocations: 183.5 kB / 0.5966 GB, free: 11.77 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.823/2.252, allocations: 0 / 0.5966 GB, free: 11.77 MB / 446.1 MB (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)