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.00521/0.00521, allocations: 101 kB / 15.73 MB, free: 6.059 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.001374/0.001374, allocations: 192.5 kB / 16.67 MB, free: 5.969 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 / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.84/0.84, allocations: 132.2 MB / 422.7 MB, free: 6.551 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 72.06 kB / 0.5808 GB, free: 24.15 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1991/0.2009, allocations: 80.2 MB / 0.6592 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003742/0.2047, allocations: 1.628 MB / 0.6608 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001153/0.2059, allocations: 0.5533 MB / 0.6613 GB, free: 8.586 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001243/0.2061, allocations: 4 kB / 0.6613 GB, free: 8.582 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002237/0.2063, allocations: 23.78 kB / 0.6613 GB, free: 8.559 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003221/0.2067, allocations: 62.3 kB / 0.6614 GB, free: 8.5 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002221/0.2069, allocations: 71.84 kB / 0.6614 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002615/0.2072, allocations: 131.5 kB / 0.6616 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/0.2074, allocations: 49.45 kB / 0.6616 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001556/0.2075, allocations: 55.77 kB / 0.6617 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000157/0.2077, allocations: 67.69 kB / 0.6617 GB, free: 8.125 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.781e-05/0.2077, allocations: 8 kB / 0.6617 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001389/0.2079, allocations: 20 kB / 0.6618 GB, free: 8.098 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001161/0.208, allocations: 59.77 kB / 0.6618 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.203e-05/0.2081, allocations: 59.59 kB / 0.6619 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002795/0.2084, allocations: 147.5 kB / 0.662 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2084, allocations: 0 / 0.662 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of FrontEnd: time 4.899e-06/0.2084, allocations: 3.984 kB / 0.662 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.604e-06/0.2084, allocations: 0 / 0.662 GB, free: 7.832 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.0008611/0.2093, allocations: 470.4 kB / 0.6625 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.2093, allocations: 8.031 kB / 0.6625 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.626e-05/0.2094, allocations: 42.69 kB / 0.6625 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.979e-05/0.2095, allocations: 20.84 kB / 0.6625 GB, free: 7.246 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004521/0.2099, allocations: 244.9 kB / 0.6628 GB, free: 6.965 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.21, allocations: 4.375 kB / 0.6628 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.255e-05/0.21, allocations: 384 / 0.6628 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000342/0.2103, allocations: 113.7 kB / 0.6629 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.2104, allocations: 0 / 0.6629 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.057e-05/0.2104, allocations: 8 kB / 0.6629 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.2104, allocations: 0 / 0.6629 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002496/0.2106, allocations: 65.44 kB / 0.663 GB, free: 6.773 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007082/0.2114, allocations: 388.5 kB / 0.6633 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000149/0.2115, allocations: 38.56 kB / 0.6634 GB, free: 6.297 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001346/0.2117, allocations: 32.89 kB / 0.6634 GB, free: 6.262 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.2117, allocations: 0 / 0.6634 GB, free: 6.262 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002699/0.212, allocations: 97.02 kB / 0.6635 GB, free: 6.148 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.212, allocations: 4 kB / 0.6635 GB, free: 6.145 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004822/0.2125, allocations: 121.5 kB / 0.6636 GB, free: 6.02 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.566e-05/0.2126, allocations: 81.11 kB / 0.6637 GB, free: 5.922 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002896/0.2129, allocations: 253 kB / 0.6639 GB, free: 5.664 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.2129, allocations: 25.7 kB / 0.664 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.213, allocations: 132.1 kB / 0.6641 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/0.213, allocations: 15.89 kB / 0.6641 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.07e-05/0.2131, allocations: 9.719 kB / 0.6641 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001575/0.2132, allocations: 334.8 kB / 0.6644 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.2134, allocations: 19.98 kB / 0.6644 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/0.2135, allocations: 55.53 kB / 0.6645 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002293/0.2137, allocations: 62.52 kB / 0.6646 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.2138, allocations: 0 / 0.6646 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003138/0.2141, allocations: 105.5 kB / 0.6647 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.2141, allocations: 8 kB / 0.6647 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.2141, allocations: 96 / 0.6647 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.2141, allocations: 7.922 kB / 0.6647 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.2143, allocations: 15.92 kB / 0.6647 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.2143, allocations: 3.984 kB / 0.6647 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.588e-05/0.2144, allocations: 19.94 kB / 0.6647 GB, free: 4.812 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.373e-05/0.2144, allocations: 8.094 kB / 0.6647 GB, free: 4.805 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.0001167/0.2145, allocations: 130.6 kB / 0.6648 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.104e-05/0.2146, allocations: 15.91 kB / 0.6649 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.192e-05/0.2146, allocations: 29.17 kB / 0.6649 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.2146, allocations: 0 / 0.6649 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.2146, allocations: 0 / 0.6649 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.2146, allocations: 0 / 0.6649 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002016/0.2148, allocations: 217.5 kB / 0.6651 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.2148, allocations: 4 kB / 0.6651 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.853e-05/0.2149, allocations: 15.98 kB / 0.6651 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.2149, allocations: 0 / 0.6651 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.215, allocations: 3.938 kB / 0.6651 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.215, allocations: 0 / 0.6651 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.215, allocations: 3.984 kB / 0.6651 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003/0.2153, allocations: 120.9 kB / 0.6652 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.64e-05/0.2153, allocations: 96.97 kB / 0.6653 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.375e-05/0.2154, allocations: 3.938 kB / 0.6653 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.384e-05/0.2155, allocations: 15.98 kB / 0.6653 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.516e-05/0.2155, allocations: 3.984 kB / 0.6653 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.536e-05/0.2156, allocations: 4 kB / 0.6654 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001968/0.2158, allocations: 192.5 kB / 0.6655 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2158, allocations: 0 / 0.6655 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002207/0.216, allocations: 23.94 kB / 0.6656 GB, free: 3.848 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.0007999/0.2168, allocations: 0.6767 MB / 0.6662 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003105/0.2171, allocations: 55.88 kB / 0.6663 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2171, allocations: 0 / 0.6663 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001182/0.2173, allocations: 23.98 kB / 0.6663 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003255/0.2176, allocations: 52.66 kB / 0.6663 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002483/0.2201, allocations: 1.76 MB / 0.6681 GB, free: 1.16 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/0.2205, allocations: 0.7197 MB / 0.6688 GB, free: 424 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.976e-05/0.2206, allocations: 16.55 kB / 0.6688 GB, free: 408 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.527e-05/0.2207, allocations: 43.41 kB / 0.6688 GB, free: 364 kB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.2207, allocations: 0 / 0.6688 GB, free: 364 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02575/0.2464, allocations: 3.598 MB / 0.6723 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.987/8.233, allocations: 11.39 kB / 0.6723 GB, free: 12.86 MB / 0.5137 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 & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Utilities_IO_Files_Examples_JSONWriter.fmu > IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)