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.00502/0.00502, allocations: 96.67 kB / 15.73 MB, free: 5.988 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.001154/0.001154, allocations: 187.8 kB / 16.67 MB, free: 5.918 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: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9515/0.9515, allocations: 135.1 MB / 425.7 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 59.91 kB / 0.5851 GB, free: 3.867 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3903/0.3916, allocations: 80.92 MB / 0.6641 GB, free: 7.242 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002304/0.394, allocations: 1.64 MB / 0.6657 GB, free: 5.961 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007031/0.3947, allocations: 0.5408 MB / 0.6663 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.86e-05/0.3948, allocations: 6.594 kB / 0.6663 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001477/0.3949, allocations: 22.42 kB / 0.6663 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002175/0.3952, allocations: 65.64 kB / 0.6664 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001271/0.3953, allocations: 66.22 kB / 0.6664 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001577/0.3955, allocations: 134 kB / 0.6666 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.3956, allocations: 47.12 kB / 0.6666 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001022/0.3957, allocations: 61.3 kB / 0.6667 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001064/0.3958, allocations: 58.62 kB / 0.6667 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.553e-05/0.3959, allocations: 13.69 kB / 0.6667 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.442e-05/0.3959, allocations: 19.19 kB / 0.6667 GB, free: 5.211 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.841e-05/0.396, allocations: 43.31 kB / 0.6668 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.618e-05/0.3961, allocations: 64.36 kB / 0.6668 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001784/0.3962, allocations: 148.8 kB / 0.667 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.3963, allocations: 4 kB / 0.667 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.403e-06/0.3963, allocations: 1.281 kB / 0.667 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.487e-06/0.3963, allocations: 0 / 0.667 GB, free: 5.027 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.000521/0.3968, allocations: 473.1 kB / 0.6674 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.3969, allocations: 9.531 kB / 0.6675 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.574e-05/0.3969, allocations: 37.34 kB / 0.6675 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.329e-05/0.3969, allocations: 22 kB / 0.6675 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002306/0.3972, allocations: 245.8 kB / 0.6677 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.3972, allocations: 6.688 kB / 0.6678 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.304e-05/0.3972, allocations: 7.625 kB / 0.6678 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002582/0.3975, allocations: 109.5 kB / 0.6679 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.3975, allocations: 0 / 0.6679 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.3975, allocations: 5.438 kB / 0.6679 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.3975, allocations: 1.469 kB / 0.6679 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000222/0.3977, allocations: 66.23 kB / 0.6679 GB, free: 4.141 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004761/0.3982, allocations: 380.2 kB / 0.6683 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001285/0.3984, allocations: 33.81 kB / 0.6683 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.3985, allocations: 34.14 kB / 0.6684 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.53e-05/0.3985, allocations: 3.984 kB / 0.6684 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002037/0.3987, allocations: 102.4 kB / 0.6685 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.3987, allocations: 0 / 0.6685 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004108/0.3991, allocations: 124.4 kB / 0.6686 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.836e-05/0.3992, allocations: 77.11 kB / 0.6687 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002008/0.3994, allocations: 257.3 kB / 0.6689 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.175e-05/0.3994, allocations: 29.7 kB / 0.6689 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.837e-05/0.3995, allocations: 129.5 kB / 0.6691 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.673e-05/0.3995, allocations: 5.297 kB / 0.6691 GB, free: 3.125 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.273e-05/0.3995, allocations: 21.59 kB / 0.6691 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.3e-05/0.3996, allocations: 331.4 kB / 0.6694 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.3997, allocations: 25.25 kB / 0.6694 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.3998, allocations: 46.33 kB / 0.6695 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002075/0.4, allocations: 71.39 kB / 0.6695 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.4, allocations: 5.25 kB / 0.6695 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002594/0.4003, allocations: 106 kB / 0.6696 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.4003, allocations: 5.031 kB / 0.6696 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.4003, allocations: 1.094 kB / 0.6696 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.4003, allocations: 5 kB / 0.6696 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.4005, allocations: 11.8 kB / 0.6697 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.4005, allocations: 5.156 kB / 0.6697 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.035e-05/0.4006, allocations: 14.52 kB / 0.6697 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.695e-06/0.4006, allocations: 2.812 kB / 0.6697 GB, free: 2.574 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 7.02e-05/0.4007, allocations: 131.8 kB / 0.6698 GB, free: 2.445 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.958e-05/0.4007, allocations: 19.77 kB / 0.6698 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.105e-05/0.4007, allocations: 22.83 kB / 0.6698 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.4007, allocations: 1.219 kB / 0.6698 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.4007, allocations: 0 / 0.6698 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.4007, allocations: 1.062 kB / 0.6698 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001083/0.4009, allocations: 211.9 kB / 0.67 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.4009, allocations: 0 / 0.67 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.171e-05/0.401, allocations: 11.83 kB / 0.6701 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.401, allocations: 8 kB / 0.6701 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.401, allocations: 11.88 kB / 0.6701 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.401, allocations: 5.422 kB / 0.6701 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.401, allocations: 0 / 0.6701 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002658/0.4013, allocations: 121.3 kB / 0.6702 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.971e-05/0.4013, allocations: 91.38 kB / 0.6703 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.364e-05/0.4013, allocations: 9.031 kB / 0.6703 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.491e-05/0.4014, allocations: 10.42 kB / 0.6703 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.489e-05/0.4015, allocations: 9.484 kB / 0.6703 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.88e-05/0.4015, allocations: 4.375 kB / 0.6703 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001417/0.4016, allocations: 187.9 kB / 0.6705 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4016, allocations: 1.062 kB / 0.6705 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002247/0.4019, allocations: 20.88 kB / 0.6705 GB, free: 1.801 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.0005673/0.4024, allocations: 0.6773 MB / 0.6712 GB, free: 1.16 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002911/0.4027, allocations: 71.44 kB / 0.6712 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4028, allocations: 0 / 0.6712 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001136/0.4029, allocations: 25.14 kB / 0.6713 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.4032, allocations: 46.66 kB / 0.6713 GB, free: 1.09 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001811/0.405, allocations: 1.76 MB / 0.673 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002932/0.4053, allocations: 0.7215 MB / 0.6737 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.355e-05/0.4054, allocations: 13.17 kB / 0.6738 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.157e-05/0.4054, allocations: 46.06 kB / 0.6738 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of SimCode: time 3e-07/0.4054, allocations: 1 kB / 0.6738 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01819/0.4236, allocations: 3.601 MB / 0.6773 GB, free: 13 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.671/8.094, allocations: 1.844 kB / 0.6773 GB, free: 13 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_JSONWriter.fmu > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)