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.0007805/0.0007805, allocations: 105.5 kB / 18.95 MB, free: 1.188 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.0008256/0.0008256, allocations: 208.1 kB / 22.25 MB, free: 3.574 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 0.9903/0.9903, allocations: 230.6 MB / 256 MB, free: 9.621 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.8482/0.8482, allocations: 203.8 MB / 0.5042 GB, free: 10.45 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.001/0.001, allocations: 66.36 kB / 0.7181 GB, free: 4.066 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5172/0.5182, allocations: 102 MB / 0.8178 GB, free: 1.047 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002065/0.5203, allocations: 1.647 MB / 0.8194 GB, free: 15.93 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0007197/0.521, allocations: 0.5807 MB / 0.8199 GB, free: 15.53 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.543e-05/0.521, allocations: 6.75 kB / 0.82 GB, free: 15.53 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.00019/0.5212, allocations: 34.06 kB / 0.82 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002321/0.5215, allocations: 63.8 kB / 0.82 GB, free: 15.47 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001842/0.5217, allocations: 77.66 kB / 0.8201 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001643/0.5218, allocations: 138 kB / 0.8202 GB, free: 15.37 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.522, allocations: 33.78 kB / 0.8203 GB, free: 15.35 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001443/0.5221, allocations: 66.59 kB / 0.8203 GB, free: 15.32 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001122/0.5222, allocations: 56.12 kB / 0.8204 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.107e-05/0.5222, allocations: 8.562 kB / 0.8204 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.069e-05/0.5223, allocations: 32.62 kB / 0.8204 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 8.182e-05/0.5224, allocations: 51.44 kB / 0.8205 GB, free: 15.26 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.49e-05/0.5224, allocations: 41.16 kB / 0.8205 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002059/0.5226, allocations: 147 kB / 0.8207 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.5226, allocations: 0.5156 kB / 0.8207 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.044e-06/0.5226, allocations: 5.094 kB / 0.8207 GB, free: 15.17 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.121e-06/0.5226, allocations: 3.938 kB / 0.8207 GB, free: 15.17 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.0005206/0.5232, allocations: 408.5 kB / 0.8211 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.5232, allocations: 8.078 kB / 0.8211 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.648e-05/0.5232, allocations: 40.94 kB / 0.8211 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/0.5234, allocations: 30.02 kB / 0.8211 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002582/0.5236, allocations: 184.2 kB / 0.8213 GB, free: 14.6 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.5237, allocations: 10.81 kB / 0.8213 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.11e-05/0.5237, allocations: 4.844 kB / 0.8213 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002396/0.5239, allocations: 155.3 kB / 0.8215 GB, free: 14.48 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.5239, allocations: 0 / 0.8215 GB, free: 14.48 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.5239, allocations: 5.75 kB / 0.8215 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.5239, allocations: 6.547 kB / 0.8215 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001466/0.5241, allocations: 63.2 kB / 0.8216 GB, free: 14.46 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005214/0.5246, allocations: 345.3 kB / 0.8219 GB, free: 14.17 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 9.388e-05/0.5247, allocations: 38.03 kB / 0.8219 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.659e-05/0.5248, allocations: 32.25 kB / 0.8219 GB, free: 14.13 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.555e-05/0.5248, allocations: 0 / 0.8219 GB, free: 14.13 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001892/0.525, allocations: 157.3 kB / 0.8221 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 7.81e-07/0.525, allocations: 0 / 0.8221 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0002831/0.5253, allocations: 122.5 kB / 0.8222 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.83e-05/0.5253, allocations: 81.95 kB / 0.8223 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001926/0.5255, allocations: 258.8 kB / 0.8225 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.339e-05/0.5255, allocations: 25.7 kB / 0.8226 GB, free: 13.65 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.089e-05/0.5256, allocations: 126 kB / 0.8227 GB, free: 13.54 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.78e-05/0.5256, allocations: 21.34 kB / 0.8227 GB, free: 13.52 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.627e-05/0.5256, allocations: 16.05 kB / 0.8227 GB, free: 13.5 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.771e-05/0.5257, allocations: 328.2 kB / 0.823 GB, free: 13.18 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.711e-05/0.5257, allocations: 25.72 kB / 0.8231 GB, free: 13.18 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.247e-05/0.5258, allocations: 71.28 kB / 0.8231 GB, free: 13.11 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001151/0.5259, allocations: 71.39 kB / 0.8232 GB, free: 13.08 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.5259, allocations: 3.938 kB / 0.8232 GB, free: 13.07 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001642/0.5261, allocations: 101.8 kB / 0.8233 GB, free: 13.02 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.5261, allocations: 6.203 kB / 0.8233 GB, free: 13.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.5261, allocations: 0 / 0.8233 GB, free: 13.02 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.5261, allocations: 4.969 kB / 0.8233 GB, free: 13.02 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.558e-05/0.5262, allocations: 17.38 kB / 0.8233 GB, free: 13.02 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.5262, allocations: 0 / 0.8233 GB, free: 13.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.831e-05/0.5263, allocations: 11.55 kB / 0.8233 GB, free: 13.02 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.623e-06/0.5263, allocations: 1.188 kB / 0.8233 GB, free: 13.02 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 8.575e-05/0.5263, allocations: 133 kB / 0.8235 GB, free: 12.89 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.067e-05/0.5264, allocations: 20.97 kB / 0.8235 GB, free: 12.88 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.041e-05/0.5264, allocations: 21.2 kB / 0.8235 GB, free: 12.86 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.5264, allocations: 1.531 kB / 0.8235 GB, free: 12.86 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.5264, allocations: 1.281 kB / 0.8235 GB, free: 12.86 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.5264, allocations: 4 kB / 0.8235 GB, free: 12.86 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001266/0.5265, allocations: 175.4 kB / 0.8237 GB, free: 12.69 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-07/0.5265, allocations: 0 / 0.8237 GB, free: 12.69 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.846e-05/0.5266, allocations: 14.83 kB / 0.8237 GB, free: 12.68 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.5266, allocations: 2.297 kB / 0.8237 GB, free: 12.68 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.5266, allocations: 7.938 kB / 0.8237 GB, free: 12.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.5266, allocations: 1.344 kB / 0.8237 GB, free: 12.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.5266, allocations: 3.938 kB / 0.8237 GB, free: 12.67 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001792/0.5268, allocations: 122.2 kB / 0.8238 GB, free: 12.59 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.884e-05/0.5268, allocations: 17.75 kB / 0.8238 GB, free: 12.58 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.6e-05/0.5268, allocations: 4.688 kB / 0.8238 GB, free: 12.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.865e-05/0.5268, allocations: 10.38 kB / 0.8239 GB, free: 12.57 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.107e-05/0.5269, allocations: 7.609 kB / 0.8239 GB, free: 12.57 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/0.5269, allocations: 6.953 kB / 0.8239 GB, free: 12.57 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001519/0.5271, allocations: 186.5 kB / 0.824 GB, free: 12.47 MB / 0.6198 GB Notification: Performance of sort global known variables: time 8e-08/0.5271, allocations: 5.156 kB / 0.824 GB, free: 12.46 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000156/0.5272, allocations: 21.58 kB / 0.8241 GB, free: 12.46 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.0005466/0.5278, allocations: 0.6742 MB / 0.8247 GB, free: 11.84 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002288/0.528, allocations: 66.09 kB / 0.8248 GB, free: 11.82 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.528, allocations: 1.188 kB / 0.8248 GB, free: 11.82 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.138e-05/0.5281, allocations: 31.34 kB / 0.8248 GB, free: 11.82 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002427/0.5283, allocations: 44.94 kB / 0.8249 GB, free: 11.8 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/0.5298, allocations: 1.76 MB / 0.8266 GB, free: 10.45 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.083e-05/0.5299, allocations: 109.1 kB / 0.8267 GB, free: 10.38 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 7e-05/0.53, allocations: 22.92 kB / 0.8267 GB, free: 10.37 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.081e-05/0.5301, allocations: 47.22 kB / 0.8268 GB, free: 10.33 MB / 0.6198 GB Notification: Performance of SimCode: time 3.91e-07/0.5301, allocations: 1.281 kB / 0.8268 GB, free: 10.33 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01704/0.5471, allocations: 4.271 MB / 0.8309 GB, free: 9.246 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.552/7.099, allocations: 3.25 kB / 0.8309 GB, free: 9.246 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.288257383741438] Failed to read output from testmodel.py, exit status != 0: 7.180481495801359 7.196994196 6.672060386 Calling exit ...