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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008219/0.0008219, allocations: 113.9 kB / 18.94 MB, free: 1.27 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 217.2 kB / 22.26 MB, free: 3.695 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.018/1.018, allocations: 230.6 MB / 256 MB, free: 9.797 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.8147/0.8147, allocations: 203.8 MB / 0.5042 GB, free: 10.71 MB / 410.7 MB " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009985/0.0009985, allocations: 67.53 kB / 0.7182 GB, free: 4.371 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5345/0.5355, allocations: 102 MB / 0.8178 GB, free: 1.242 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002347/0.5378, allocations: 1.69 MB / 0.8195 GB, free: 72 kB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.000873/0.5387, allocations: 0.6192 MB / 0.8201 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.25e-05/0.5388, allocations: 5.781 kB / 0.8201 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001753/0.539, allocations: 28.5 kB / 0.8201 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002522/0.5392, allocations: 66.69 kB / 0.8202 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001739/0.5394, allocations: 75.14 kB / 0.8203 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001896/0.5396, allocations: 140.2 kB / 0.8204 GB, free: 15.47 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.5398, allocations: 34.38 kB / 0.8204 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001739/0.5399, allocations: 68.36 kB / 0.8205 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001112/0.54, allocations: 62.41 kB / 0.8205 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.44e-05/0.5401, allocations: 14.72 kB / 0.8206 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.181e-05/0.5401, allocations: 29.52 kB / 0.8206 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 9.345e-05/0.5402, allocations: 45.33 kB / 0.8206 GB, free: 15.36 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.314e-05/0.5403, allocations: 67.75 kB / 0.8207 GB, free: 15.31 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002109/0.5405, allocations: 146.4 kB / 0.8208 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.5405, allocations: 0 / 0.8208 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.793e-06/0.5405, allocations: 0 / 0.8208 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.5405, allocations: 0 / 0.8208 GB, free: 15.25 MB / 0.6198 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.0004881/0.541, allocations: 412.4 kB / 0.8212 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.5411, allocations: 10.03 kB / 0.8212 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.42e-05/0.5411, allocations: 36.53 kB / 0.8213 GB, free: 14.85 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.5412, allocations: 30.88 kB / 0.8213 GB, free: 14.84 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002504/0.5415, allocations: 183.8 kB / 0.8215 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.5415, allocations: 10.44 kB / 0.8215 GB, free: 14.67 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.207e-05/0.5415, allocations: 2.438 kB / 0.8215 GB, free: 14.67 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002067/0.5417, allocations: 112.3 kB / 0.8216 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.5417, allocations: 3.938 kB / 0.8216 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.5417, allocations: 3.688 kB / 0.8216 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.5417, allocations: 0.7969 kB / 0.8216 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001255/0.5418, allocations: 61.5 kB / 0.8217 GB, free: 14.6 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004494/0.5423, allocations: 353.9 kB / 0.822 GB, free: 14.31 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 8.59e-05/0.5424, allocations: 40.34 kB / 0.822 GB, free: 14.29 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.941e-05/0.5424, allocations: 25.75 kB / 0.8221 GB, free: 14.28 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.563e-05/0.5425, allocations: 4 kB / 0.8221 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001637/0.5426, allocations: 97.5 kB / 0.8222 GB, free: 14.2 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 3.186e-06/0.5426, allocations: 7.922 kB / 0.8222 GB, free: 14.19 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0002683/0.5429, allocations: 121.8 kB / 0.8223 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.194e-05/0.5429, allocations: 77.67 kB / 0.8224 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001933/0.5431, allocations: 262.3 kB / 0.8226 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.347e-05/0.5431, allocations: 31.7 kB / 0.8226 GB, free: 13.85 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.425e-05/0.5432, allocations: 126.9 kB / 0.8228 GB, free: 13.74 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.842e-05/0.5432, allocations: 11.91 kB / 0.8228 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.898e-05/0.5433, allocations: 16.84 kB / 0.8228 GB, free: 13.71 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.217e-05/0.5433, allocations: 327.2 kB / 0.8231 GB, free: 13.39 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.915e-05/0.5434, allocations: 29.17 kB / 0.8231 GB, free: 13.38 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.355e-05/0.5435, allocations: 45.11 kB / 0.8232 GB, free: 13.35 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001154/0.5436, allocations: 72.48 kB / 0.8232 GB, free: 13.31 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.5436, allocations: 4 kB / 0.8232 GB, free: 13.31 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001554/0.5437, allocations: 100.1 kB / 0.8233 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.5438, allocations: 4.875 kB / 0.8233 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.5438, allocations: 2.094 kB / 0.8233 GB, free: 13.26 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.5438, allocations: 9.031 kB / 0.8234 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.94e-05/0.5438, allocations: 15.81 kB / 0.8234 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.5439, allocations: 5.531 kB / 0.8234 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.464e-05/0.5439, allocations: 14.94 kB / 0.8234 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.5439, allocations: 1.531 kB / 0.8234 GB, free: 13.24 MB / 0.6198 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.762e-05/0.544, allocations: 129.8 kB / 0.8235 GB, free: 13.12 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.669e-05/0.544, allocations: 19.55 kB / 0.8235 GB, free: 13.11 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.216e-05/0.544, allocations: 28.56 kB / 0.8236 GB, free: 13.08 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.544, allocations: 2.094 kB / 0.8236 GB, free: 13.08 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.544, allocations: 0 / 0.8236 GB, free: 13.08 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.544, allocations: 1.094 kB / 0.8236 GB, free: 13.08 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000127/0.5442, allocations: 183.8 kB / 0.8237 GB, free: 12.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.5442, allocations: 0.8125 kB / 0.8237 GB, free: 12.91 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.794e-05/0.5442, allocations: 12.55 kB / 0.8238 GB, free: 12.91 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.5442, allocations: 0 / 0.8238 GB, free: 12.91 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.746e-06/0.5442, allocations: 5.25 kB / 0.8238 GB, free: 12.91 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.5442, allocations: 0 / 0.8238 GB, free: 12.91 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.5442, allocations: 1.406 kB / 0.8238 GB, free: 12.91 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001573/0.5444, allocations: 124.9 kB / 0.8239 GB, free: 12.82 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.999e-05/0.5444, allocations: 24.5 kB / 0.8239 GB, free: 12.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.471e-05/0.5444, allocations: 3.938 kB / 0.8239 GB, free: 12.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.438e-05/0.5444, allocations: 8.984 kB / 0.8239 GB, free: 12.8 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.246e-05/0.5445, allocations: 9.094 kB / 0.8239 GB, free: 12.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.683e-05/0.5445, allocations: 7.875 kB / 0.8239 GB, free: 12.79 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001331/0.5446, allocations: 193.4 kB / 0.8241 GB, free: 12.69 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5446, allocations: 0 / 0.8241 GB, free: 12.69 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000152/0.5448, allocations: 17.81 kB / 0.8241 GB, free: 12.69 MB / 0.6198 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.0004864/0.5453, allocations: 0.6848 MB / 0.8248 GB, free: 12.06 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001877/0.5455, allocations: 65.23 kB / 0.8249 GB, free: 12.04 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.5455, allocations: 0.875 kB / 0.8249 GB, free: 12.04 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 6.233e-05/0.5455, allocations: 27.73 kB / 0.8249 GB, free: 12.04 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002217/0.5457, allocations: 41.56 kB / 0.8249 GB, free: 12.03 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/0.5473, allocations: 1.767 MB / 0.8267 GB, free: 10.66 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002088/0.5475, allocations: 0.7223 MB / 0.8274 GB, free: 9.961 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.437e-05/0.5476, allocations: 17.34 kB / 0.8274 GB, free: 9.957 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.012e-05/0.5476, allocations: 44.06 kB / 0.8274 GB, free: 9.926 MB / 0.6198 GB Notification: Performance of SimCode: time 5.31e-07/0.5476, allocations: 0 / 0.8274 GB, free: 9.926 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01762/0.5653, allocations: 3.76 MB / 0.8311 GB, free: 9.297 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.619/7.184, allocations: 4.031 kB / 0.8311 GB, free: 9.297 MB / 0.6198 GB " [Timeout remaining time 653] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.35922150616534] Failed to read output from testmodel.py, exit status != 0: 7.2654889149125665 7.28424785 6.740395884 Calling exit ...