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.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.0007983/0.0007983, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.001078/0.001078, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8911/0.8911, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:686:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Examples/PPD12/Structure.mo:531:21-531:694:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.order:0:0-0:0:readonly] Warning: Found duplicate names in package.order file: A, B, C. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Media/Refrigerants/R410A/package.mo:2:1-70:10:writable] Warning: C was referenced in the package.order file, but was not found in package.mo, C/package.mo or C.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/package.mo): time 0.7336/0.7336, allocations: 154.6 MB / 413.8 MB, free: 0.8125 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 4.0.0/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_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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 0.6181 GB, free: 13.68 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.304e-05/2.461e-05, allocations: 2.281 kB / 0.6181 GB, free: 13.67 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002281/0.002306, allocations: 1.644 MB / 0.6197 GB, free: 12.02 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0008044/0.00311, allocations: 0.5766 MB / 0.6202 GB, free: 11.43 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.787e-05/0.003208, allocations: 11.94 kB / 0.6203 GB, free: 11.42 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.000186/0.003394, allocations: 35.61 kB / 0.6203 GB, free: 11.39 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 0.0002244/0.003618, allocations: 59.67 kB / 0.6203 GB, free: 11.33 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002007/0.003819, allocations: 83.77 kB / 0.6204 GB, free: 11.25 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001662/0.003985, allocations: 131.5 kB / 0.6206 GB, free: 11.12 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.004137, allocations: 25.67 kB / 0.6206 GB, free: 11.09 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001676/0.004304, allocations: 79.8 kB / 0.6207 GB, free: 11.01 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 7.769e-05/0.004382, allocations: 51.81 kB / 0.6207 GB, free: 10.96 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.217e-05/0.004404, allocations: 12 kB / 0.6207 GB, free: 10.95 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 6.14e-05/0.004466, allocations: 31.92 kB / 0.6207 GB, free: 10.91 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 7.118e-05/0.004537, allocations: 47.83 kB / 0.6208 GB, free: 10.87 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.84e-05/0.004575, allocations: 35.84 kB / 0.6208 GB, free: 10.83 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.000174/0.004749, allocations: 151.4 kB / 0.621 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.763e-06/0.004751, allocations: 0 / 0.621 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of FrontEnd: time 6.21e-07/0.004752, allocations: 0 / 0.621 GB, free: 10.68 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.978e-06/0.004756, allocations: 0 / 0.621 GB, free: 10.68 MB / 0.5886 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.0004654/0.005221, allocations: 401.3 kB / 0.6214 GB, free: 10.26 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.005258, allocations: 12.03 kB / 0.6214 GB, free: 10.25 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.277e-05/0.005291, allocations: 42.69 kB / 0.6214 GB, free: 10.2 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.005402, allocations: 24.83 kB / 0.6214 GB, free: 10.18 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002243/0.005626, allocations: 185.4 kB / 0.6216 GB, free: 9.969 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.005635, allocations: 4.375 kB / 0.6216 GB, free: 9.965 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.09e-05/0.005646, allocations: 4.375 kB / 0.6216 GB, free: 9.961 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002141/0.00586, allocations: 172.5 kB / 0.6218 GB, free: 9.777 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.005868, allocations: 192 / 0.6218 GB, free: 9.777 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.005881, allocations: 4.125 kB / 0.6218 GB, free: 9.773 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.005886, allocations: 4 kB / 0.6218 GB, free: 9.77 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001205/0.006007, allocations: 67.88 kB / 0.6218 GB, free: 9.703 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004083/0.006415, allocations: 339.6 kB / 0.6222 GB, free: 9.328 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 8.226e-05/0.006497, allocations: 42.55 kB / 0.6222 GB, free: 9.277 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.671e-05/0.006554, allocations: 28.91 kB / 0.6222 GB, free: 9.246 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.593e-05/0.00657, allocations: 0 / 0.6222 GB, free: 9.246 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001731/0.006743, allocations: 144.5 kB / 0.6224 GB, free: 9.074 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=3): time 6.62e-07/0.006744, allocations: 0 / 0.6224 GB, free: 9.074 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3): time 0.0002779/0.007022, allocations: 133.4 kB / 0.6225 GB, free: 8.938 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.394e-05/0.007066, allocations: 77.11 kB / 0.6226 GB, free: 8.844 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001869/0.007253, allocations: 257.7 kB / 0.6228 GB, free: 8.59 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.00727, allocations: 29.7 kB / 0.6229 GB, free: 8.555 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.732e-05/0.007337, allocations: 132 kB / 0.623 GB, free: 8.422 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 1.639e-05/0.007354, allocations: 7.938 kB / 0.623 GB, free: 8.414 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.701e-05/0.007381, allocations: 13.72 kB / 0.623 GB, free: 8.395 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 8.053e-05/0.007461, allocations: 326.8 kB / 0.6233 GB, free: 8.066 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.571e-05/0.007517, allocations: 35.91 kB / 0.6233 GB, free: 8.031 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.852e-05/0.007585, allocations: 73.3 kB / 0.6234 GB, free: 7.941 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000105/0.00769, allocations: 66.47 kB / 0.6235 GB, free: 7.867 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.007692, allocations: 0 / 0.6235 GB, free: 7.867 MB / 0.5886 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001427/0.007835, allocations: 109.6 kB / 0.6236 GB, free: 7.754 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/0.007846, allocations: 4 kB / 0.6236 GB, free: 7.75 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.00785, allocations: 0 / 0.6236 GB, free: 7.75 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.007862, allocations: 7.969 kB / 0.6236 GB, free: 7.742 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.411e-05/0.007926, allocations: 11.98 kB / 0.6236 GB, free: 7.73 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.007933, allocations: 7.938 kB / 0.6236 GB, free: 7.723 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.63e-05/0.00798, allocations: 11.94 kB / 0.6236 GB, free: 7.711 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.672e-06/0.007986, allocations: 8.094 kB / 0.6236 GB, free: 7.703 MB / 0.5886 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.677e-05/0.008063, allocations: 138.7 kB / 0.6238 GB, free: 7.559 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.556e-05/0.008079, allocations: 15.91 kB / 0.6238 GB, free: 7.543 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.317e-05/0.008102, allocations: 13.34 kB / 0.6238 GB, free: 7.531 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.008103, allocations: 0 / 0.6238 GB, free: 7.531 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.008107, allocations: 0 / 0.6238 GB, free: 7.531 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.008112, allocations: 11.92 kB / 0.6238 GB, free: 7.52 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001015/0.008213, allocations: 172.7 kB / 0.624 GB, free: 7.309 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.008214, allocations: 0 / 0.624 GB, free: 7.309 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.169e-05/0.008246, allocations: 15.92 kB / 0.624 GB, free: 7.293 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.008247, allocations: 4 kB / 0.624 GB, free: 7.289 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.008254, allocations: 3.984 kB / 0.624 GB, free: 7.285 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.008255, allocations: 4 kB / 0.624 GB, free: 7.281 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.008256, allocations: 0 / 0.624 GB, free: 7.281 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001502/0.008406, allocations: 124.9 kB / 0.6241 GB, free: 7.141 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.397e-05/0.00842, allocations: 11.91 kB / 0.6241 GB, free: 7.129 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.319e-05/0.008433, allocations: 3.938 kB / 0.6241 GB, free: 7.125 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.568e-05/0.008469, allocations: 15.98 kB / 0.6241 GB, free: 7.109 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.815e-05/0.008507, allocations: 11.92 kB / 0.6242 GB, free: 7.098 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.591e-05/0.008523, allocations: 4 kB / 0.6242 GB, free: 7.094 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0001238/0.008647, allocations: 189.2 kB / 0.6243 GB, free: 6.906 MB / 0.5886 GB Notification: Performance of sort global known variables: time 7e-08/0.008647, allocations: 0 / 0.6243 GB, free: 6.906 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0001474/0.008794, allocations: 24 kB / 0.6244 GB, free: 6.883 MB / 0.5886 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.0004571/0.009252, allocations: 0.6783 MB / 0.625 GB, free: 6.176 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001583/0.00941, allocations: 55.88 kB / 0.6251 GB, free: 6.121 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.009412, allocations: 4 kB / 0.6251 GB, free: 6.117 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 5.283e-05/0.009465, allocations: 28.16 kB / 0.6251 GB, free: 6.09 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001932/0.009658, allocations: 43.09 kB / 0.6252 GB, free: 6.051 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001397/0.01106, allocations: 1.75 MB / 0.6269 GB, free: 4.195 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.332e-05/0.01112, allocations: 110.2 kB / 0.627 GB, free: 4.07 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 5.199e-05/0.01117, allocations: 20.48 kB / 0.627 GB, free: 4.051 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.093e-05/0.01123, allocations: 52.47 kB / 0.627 GB, free: 4 MB / 0.5886 GB Notification: Performance of SimCode: time 6.31e-07/0.01123, allocations: 0 / 0.627 GB, free: 4 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01824/0.02947, allocations: 4.396 MB / 0.6313 GB, free: 15.8 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 7/7.029, allocations: 0 / 0.6313 GB, free: 15.8 MB / 0.6042 GB " [Timeout remaining time 653] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.828992692753673] Failed to read output from testmodel.py, exit status != 0: 7.112621028907597 7.120928495 7.114581403 Calling exit ...