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.001461/0.001461, allocations: 108 kB / 15.61 MB, free: 152 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.002011/0.002011, allocations: 194.7 kB / 16.53 MB, free: 6.664 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.383/1.383, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7706/0.7706, allocations: 132.2 MB / 422.6 MB, free: 1.793 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 64.41 kB / 0.5019 GB, free: 3.742 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.3511, allocations: 80.2 MB / 0.5802 GB, free: 4.559 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.00266/0.3538, allocations: 1.634 MB / 0.5818 GB, free: 3.422 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007806/0.3546, allocations: 0.5462 MB / 0.5823 GB, free: 3.035 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.06e-05/0.3547, allocations: 7.219 kB / 0.5823 GB, free: 3.031 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001764/0.3548, allocations: 18.64 kB / 0.5823 GB, free: 3.02 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002315/0.3551, allocations: 66.95 kB / 0.5824 GB, free: 2.98 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001551/0.3553, allocations: 69.61 kB / 0.5825 GB, free: 2.945 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001563/0.3554, allocations: 129.3 kB / 0.5826 GB, free: 2.891 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.3556, allocations: 47.17 kB / 0.5826 GB, free: 2.867 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001022/0.3557, allocations: 61.73 kB / 0.5827 GB, free: 2.836 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.3558, allocations: 62.73 kB / 0.5828 GB, free: 2.805 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.032e-05/0.3558, allocations: 8.219 kB / 0.5828 GB, free: 2.805 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.191e-05/0.3559, allocations: 21.98 kB / 0.5828 GB, free: 2.801 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 8.378e-05/0.356, allocations: 43.64 kB / 0.5828 GB, free: 2.781 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.598e-05/0.356, allocations: 56.83 kB / 0.5829 GB, free: 2.742 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001905/0.3562, allocations: 148.6 kB / 0.583 GB, free: 2.676 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3562, allocations: 0.75 kB / 0.583 GB, free: 2.676 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3563, allocations: 3.938 kB / 0.583 GB, free: 2.672 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.3563, allocations: 0 / 0.583 GB, free: 2.672 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.0005064/0.3568, allocations: 467.5 kB / 0.5835 GB, free: 2.242 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.3568, allocations: 8.594 kB / 0.5835 GB, free: 2.242 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.281e-05/0.3569, allocations: 39.33 kB / 0.5835 GB, free: 2.199 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.323e-05/0.3569, allocations: 26.67 kB / 0.5836 GB, free: 2.184 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001911/0.3571, allocations: 233.6 kB / 0.5838 GB, free: 1.953 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.3571, allocations: 2.594 kB / 0.5838 GB, free: 1.953 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.282e-05/0.3571, allocations: 8.438 kB / 0.5838 GB, free: 1.949 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000265/0.3574, allocations: 111.8 kB / 0.5839 GB, free: 1.895 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.3574, allocations: 0 / 0.5839 GB, free: 1.895 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.336e-05/0.3574, allocations: 4.969 kB / 0.5839 GB, free: 1.891 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.3574, allocations: 1.094 kB / 0.5839 GB, free: 1.891 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000234/0.3577, allocations: 59.44 kB / 0.584 GB, free: 1.883 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005017/0.3582, allocations: 390.6 kB / 0.5843 GB, free: 1.559 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001303/0.3583, allocations: 42.33 kB / 0.5844 GB, free: 1.527 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.3585, allocations: 29.42 kB / 0.5844 GB, free: 1.516 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.244e-05/0.3585, allocations: 1.438 kB / 0.5844 GB, free: 1.516 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002354/0.3587, allocations: 96.5 kB / 0.5845 GB, free: 1.441 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.3587, allocations: 0 / 0.5845 GB, free: 1.441 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004257/0.3592, allocations: 127.3 kB / 0.5846 GB, free: 1.383 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.296e-05/0.3592, allocations: 77.77 kB / 0.5847 GB, free: 1.289 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002217/0.3594, allocations: 259.7 kB / 0.5849 GB, free: 1.137 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.3594, allocations: 26.52 kB / 0.585 GB, free: 1.105 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.289e-05/0.3595, allocations: 126.4 kB / 0.5851 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.495e-05/0.3595, allocations: 6.094 kB / 0.5851 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.332e-05/0.3596, allocations: 14.69 kB / 0.5851 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.693e-05/0.3596, allocations: 328.4 kB / 0.5854 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.3597, allocations: 25 kB / 0.5854 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000112/0.3598, allocations: 50.02 kB / 0.5855 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002072/0.3601, allocations: 74.3 kB / 0.5856 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3601, allocations: 3.938 kB / 0.5856 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002679/0.3603, allocations: 109.2 kB / 0.5857 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.3604, allocations: 6.562 kB / 0.5857 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.3604, allocations: 0.8438 kB / 0.5857 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.3604, allocations: 4.75 kB / 0.5857 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.3605, allocations: 16.77 kB / 0.5857 GB, free: 0.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.3605, allocations: 0.75 kB / 0.5857 GB, free: 0.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.76e-05/0.3606, allocations: 14.61 kB / 0.5857 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.3606, allocations: 1.5 kB / 0.5857 GB, free: 0.4961 MB / 430.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 7.35e-05/0.3607, allocations: 134 kB / 0.5858 GB, free: 380 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.819e-05/0.3607, allocations: 16.12 kB / 0.5858 GB, free: 372 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.087e-05/0.3608, allocations: 26.62 kB / 0.5859 GB, free: 352 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.3608, allocations: 0.6094 kB / 0.5859 GB, free: 352 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3608, allocations: 5.094 kB / 0.5859 GB, free: 348 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.3608, allocations: 0 / 0.5859 GB, free: 348 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001251/0.3609, allocations: 217.1 kB / 0.5861 GB, free: 132 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.3609, allocations: 0 / 0.5861 GB, free: 132 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.198e-05/0.361, allocations: 15.73 kB / 0.5861 GB, free: 128 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.361, allocations: 0.875 kB / 0.5861 GB, free: 128 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.361, allocations: 4.688 kB / 0.5861 GB, free: 124 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.361, allocations: 1 kB / 0.5861 GB, free: 124 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.361, allocations: 0 / 0.5861 GB, free: 124 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002774/0.3613, allocations: 130 kB / 0.5862 GB, free: 32 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.016e-05/0.3614, allocations: 85.97 kB / 0.5863 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.586e-05/0.3614, allocations: 6.344 kB / 0.5863 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.848e-05/0.3615, allocations: 9.172 kB / 0.5863 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.573e-05/0.3616, allocations: 3.188 kB / 0.5863 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-05/0.3616, allocations: 9.359 kB / 0.5863 GB, free: 15.93 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000186/0.3618, allocations: 191.1 kB / 0.5865 GB, free: 15.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3618, allocations: 0.5625 kB / 0.5865 GB, free: 15.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002319/0.362, allocations: 26.98 kB / 0.5865 GB, free: 15.81 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.0006363/0.3627, allocations: 0.6755 MB / 0.5872 GB, free: 15.18 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003037/0.363, allocations: 67 kB / 0.5873 GB, free: 15.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.363, allocations: 4.625 kB / 0.5873 GB, free: 15.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.3631, allocations: 31.95 kB / 0.5873 GB, free: 15.15 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.3634, allocations: 42.72 kB / 0.5873 GB, free: 15.14 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002186/0.3656, allocations: 1.731 MB / 0.589 GB, free: 13.81 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002889/0.3659, allocations: 0.7225 MB / 0.5897 GB, free: 13.11 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.389e-05/0.366, allocations: 18.97 kB / 0.5898 GB, free: 13.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.471e-05/0.3661, allocations: 46.84 kB / 0.5898 GB, free: 13.07 MB / 446.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3661, allocations: 0.9688 kB / 0.5898 GB, free: 13.07 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02083/0.3869, allocations: 3.545 MB / 0.5933 GB, free: 12.35 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.353/7.74, allocations: 5.094 kB / 0.5933 GB, free: 12.34 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 & 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)