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.00137/0.00137, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 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.00165/0.00165, allocations: 216.4 kB / 22.25 MB, free: 5.129 MB / 14.72 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.435/1.435, allocations: 230.6 MB / 256 MB, free: 7.953 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8756/0.8756, allocations: 134 MB / 446.4 MB, free: 10.18 MB / 350.1 MB " [Timeout remaining time 179] 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.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: 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.002138/0.002138, allocations: 62.91 kB / 0.6185 GB, free: 7.211 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1938/0.196, allocations: 85.91 MB / 0.7024 GB, free: 1.375 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003537/0.1995, allocations: 1.667 MB / 0.7041 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001199/0.2007, allocations: 0.6232 MB / 0.7047 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.813e-05/0.2008, allocations: 7.938 kB / 0.7047 GB, free: 15.06 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001749/0.201, allocations: 27.78 kB / 0.7047 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002884/0.2012, allocations: 67.67 kB / 0.7048 GB, free: 14.97 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002273/0.2015, allocations: 83.83 kB / 0.7048 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.000224/0.2017, allocations: 139.5 kB / 0.705 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.2018, allocations: 29.89 kB / 0.705 GB, free: 14.72 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001651/0.202, allocations: 67.75 kB / 0.7051 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001226/0.2021, allocations: 67.69 kB / 0.7051 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.277e-05/0.2021, allocations: 8 kB / 0.7051 GB, free: 14.58 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.713e-05/0.2022, allocations: 27.94 kB / 0.7052 GB, free: 14.55 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.257e-05/0.2023, allocations: 47.81 kB / 0.7052 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.491e-05/0.2024, allocations: 59.61 kB / 0.7053 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002507/0.2026, allocations: 159.2 kB / 0.7054 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.2026, allocations: 0 / 0.7054 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of FrontEnd: time 9.62e-07/0.2026, allocations: 0 / 0.7054 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.2026, allocations: 0 / 0.7054 GB, free: 14.29 MB / 0.5294 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.0006281/0.2033, allocations: 393.3 kB / 0.7058 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.2033, allocations: 12.03 kB / 0.7058 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.098e-05/0.2034, allocations: 34.75 kB / 0.7058 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001578/0.2035, allocations: 36.78 kB / 0.7059 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003612/0.2039, allocations: 190 kB / 0.7061 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/0.2039, allocations: 4.375 kB / 0.7061 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.413e-05/0.2039, allocations: 8.375 kB / 0.7061 GB, free: 13.56 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002837/0.2042, allocations: 112.6 kB / 0.7062 GB, free: 13.45 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.2042, allocations: 4 kB / 0.7062 GB, free: 13.45 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.2042, allocations: 8 kB / 0.7062 GB, free: 13.44 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.2042, allocations: 0 / 0.7062 GB, free: 13.44 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000226/0.2044, allocations: 59.94 kB / 0.7062 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006265/0.2051, allocations: 347.6 kB / 0.7066 GB, free: 13 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001357/0.2052, allocations: 42.55 kB / 0.7066 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.2053, allocations: 36.83 kB / 0.7067 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.681e-05/0.2053, allocations: 0 / 0.7067 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002393/0.2056, allocations: 93.09 kB / 0.7067 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 8.91e-07/0.2056, allocations: 0 / 0.7067 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0004684/0.206, allocations: 125.5 kB / 0.7069 GB, free: 12.67 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.759e-05/0.2061, allocations: 81.05 kB / 0.7069 GB, free: 12.57 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002671/0.2064, allocations: 256.9 kB / 0.7072 GB, free: 12.31 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.231e-05/0.2064, allocations: 29.7 kB / 0.7072 GB, free: 12.28 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 9.296e-05/0.2065, allocations: 132.1 kB / 0.7073 GB, free: 12.14 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.2065, allocations: 11.89 kB / 0.7073 GB, free: 12.13 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.831e-05/0.2066, allocations: 17.72 kB / 0.7074 GB, free: 12.11 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.2067, allocations: 322.8 kB / 0.7077 GB, free: 11.79 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.2068, allocations: 23.97 kB / 0.7077 GB, free: 11.76 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001695/0.207, allocations: 51.41 kB / 0.7077 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002098/0.2072, allocations: 74.45 kB / 0.7078 GB, free: 11.62 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2072, allocations: 3.938 kB / 0.7078 GB, free: 11.61 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002731/0.2075, allocations: 105.5 kB / 0.7079 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.2075, allocations: 7.938 kB / 0.7079 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.2075, allocations: 0 / 0.7079 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.2075, allocations: 7.938 kB / 0.7079 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.2076, allocations: 11.98 kB / 0.7079 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.2076, allocations: 0 / 0.7079 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.862e-05/0.2077, allocations: 20.02 kB / 0.708 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.254e-06/0.2077, allocations: 0 / 0.708 GB, free: 11.46 MB / 0.5294 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.000138/0.2079, allocations: 129.8 kB / 0.7081 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.226e-05/0.2079, allocations: 19.86 kB / 0.7081 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.271e-05/0.2079, allocations: 21.27 kB / 0.7081 GB, free: 11.28 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.208, allocations: 4 kB / 0.7081 GB, free: 11.28 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.208, allocations: 0 / 0.7081 GB, free: 11.28 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.208, allocations: 0 / 0.7081 GB, free: 11.28 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001979/0.2082, allocations: 180.7 kB / 0.7083 GB, free: 11.06 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/0.2082, allocations: 8 kB / 0.7083 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.052e-05/0.2082, allocations: 20.2 kB / 0.7083 GB, free: 11.03 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.2083, allocations: 4 kB / 0.7083 GB, free: 11.03 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.2083, allocations: 3.938 kB / 0.7083 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.2083, allocations: 0 / 0.7083 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2083, allocations: 0 / 0.7083 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002845/0.2085, allocations: 129 kB / 0.7085 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 2.862e-05/0.2086, allocations: 15.86 kB / 0.7085 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.438e-05/0.2086, allocations: 3.938 kB / 0.7085 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.2087, allocations: 11.98 kB / 0.7085 GB, free: 10.85 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.611e-05/0.2087, allocations: 4 kB / 0.7085 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.177e-05/0.2088, allocations: 7.984 kB / 0.7085 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0002223/0.209, allocations: 184.5 kB / 0.7087 GB, free: 10.66 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.209, allocations: 0 / 0.7087 GB, free: 10.66 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002189/0.2092, allocations: 27.98 kB / 0.7087 GB, free: 10.63 MB / 0.5294 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.0007378/0.2099, allocations: 0.6895 MB / 0.7094 GB, free: 9.914 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.000287/0.2102, allocations: 59.81 kB / 0.7094 GB, free: 9.855 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2102, allocations: 0 / 0.7094 GB, free: 9.855 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001072/0.2103, allocations: 27.92 kB / 0.7095 GB, free: 9.828 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.2106, allocations: 55.56 kB / 0.7095 GB, free: 9.785 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00223/0.2129, allocations: 1.757 MB / 0.7112 GB, free: 7.922 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003723/0.2132, allocations: 0.7195 MB / 0.7119 GB, free: 7.176 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 6.836e-05/0.2133, allocations: 20.66 kB / 0.712 GB, free: 7.156 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.059e-05/0.2134, allocations: 39.42 kB / 0.712 GB, free: 7.117 MB / 0.5294 GB Notification: Performance of SimCode: time 2.6e-07/0.2134, allocations: 0 / 0.712 GB, free: 7.117 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03247/0.2459, allocations: 3.749 MB / 0.7157 GB, free: 3.512 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/10.97, allocations: 10.64 kB / 0.7157 GB, free: 3.504 MB / 0.5294 GB " [Timeout remaining time 649] (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: 14.70977974300331] Failed to read output from testmodel.py, exit status != 0: 11.070287626003847 11.085841523 10.88012175 Calling exit ...