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.001782/0.001782, allocations: 108.9 kB / 16.46 MB, free: 6.453 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.001973/0.001973, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.445/1.445, allocations: 230.6 MB / 252.8 MB, free: 8.965 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.8485/0.8485, allocations: 133.9 MB / 442.8 MB, free: 11.29 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.001906/0.001906, allocations: 65.84 kB / 0.6134 GB, free: 8.793 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1621/0.164, allocations: 85.84 MB / 0.6972 GB, free: 3.023 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003377/0.1673, allocations: 1.665 MB / 0.6989 GB, free: 1.348 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001231/0.1686, allocations: 0.6233 MB / 0.6995 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.857e-05/0.1687, allocations: 3.938 kB / 0.6995 GB, free: 0.7148 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0002188/0.1689, allocations: 31.77 kB / 0.6995 GB, free: 0.6836 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0002801/0.1692, allocations: 60.67 kB / 0.6996 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002229/0.1694, allocations: 79.83 kB / 0.6996 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0001958/0.1696, allocations: 139.5 kB / 0.6998 GB, free: 420 kB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.1697, allocations: 37.77 kB / 0.6998 GB, free: 380 kB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001636/0.1699, allocations: 67.69 kB / 0.6999 GB, free: 312 kB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001146/0.17, allocations: 63.69 kB / 0.6999 GB, free: 248 kB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 2.667e-05/0.17, allocations: 8 kB / 0.6999 GB, free: 240 kB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 7.308e-05/0.1701, allocations: 24 kB / 0.7 GB, free: 216 kB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 9.294e-05/0.1702, allocations: 51.81 kB / 0.7 GB, free: 164 kB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 7.512e-05/0.1703, allocations: 59.55 kB / 0.7001 GB, free: 104 kB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0002609/0.1705, allocations: 155.2 kB / 0.7002 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1706, allocations: 0 / 0.7002 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.492e-06/0.1706, allocations: 4 kB / 0.7002 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.3e-06/0.1706, allocations: 0 / 0.7002 GB, free: 15.95 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.0006955/0.1713, allocations: 478.4 kB / 0.7007 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.1713, allocations: 9.109 kB / 0.7007 GB, free: 15.42 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.144e-05/0.1713, allocations: 38.75 kB / 0.7007 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000173/0.1715, allocations: 32.78 kB / 0.7008 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003665/0.1719, allocations: 251.9 kB / 0.701 GB, free: 15.06 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.1719, allocations: 8.375 kB / 0.701 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.398e-05/0.1719, allocations: 4.375 kB / 0.701 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003139/0.1722, allocations: 109.7 kB / 0.7011 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.1722, allocations: 0 / 0.7011 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.619e-05/0.1723, allocations: 8 kB / 0.7011 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.1723, allocations: 0 / 0.7011 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002447/0.1725, allocations: 63.94 kB / 0.7012 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006921/0.1732, allocations: 380.6 kB / 0.7015 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001499/0.1733, allocations: 34.55 kB / 0.7016 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001216/0.1735, allocations: 32.91 kB / 0.7016 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.454e-05/0.1735, allocations: 0 / 0.7016 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002454/0.1737, allocations: 101 kB / 0.7017 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.1737, allocations: 0 / 0.7017 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0004648/0.1742, allocations: 129.4 kB / 0.7018 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.01e-05/0.1742, allocations: 77.11 kB / 0.7019 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002755/0.1745, allocations: 264.9 kB / 0.7022 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.1745, allocations: 25.7 kB / 0.7022 GB, free: 13.72 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 8.53e-05/0.1746, allocations: 124.1 kB / 0.7023 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.996e-05/0.1747, allocations: 7.906 kB / 0.7023 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.436e-05/0.1747, allocations: 25.7 kB / 0.7023 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.1748, allocations: 326.8 kB / 0.7026 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.175, allocations: 19.97 kB / 0.7027 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001304/0.1751, allocations: 51.34 kB / 0.7027 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002354/0.1753, allocations: 66.56 kB / 0.7028 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1753, allocations: 4 kB / 0.7028 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003018/0.1756, allocations: 105.5 kB / 0.7029 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.1756, allocations: 4 kB / 0.7029 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.1756, allocations: 0 / 0.7029 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.1757, allocations: 7.938 kB / 0.7029 GB, free: 12.95 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.1758, allocations: 15.92 kB / 0.7029 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.1758, allocations: 3.938 kB / 0.7029 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.562e-05/0.1759, allocations: 15.92 kB / 0.7029 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-06/0.1759, allocations: 0 / 0.7029 GB, free: 12.91 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.0001434/0.176, allocations: 133.9 kB / 0.703 GB, free: 12.77 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.23e-05/0.1761, allocations: 19.86 kB / 0.7031 GB, free: 12.75 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.516e-05/0.1761, allocations: 25.17 kB / 0.7031 GB, free: 12.72 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.1761, allocations: 288 / 0.7031 GB, free: 12.72 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.1761, allocations: 4 kB / 0.7031 GB, free: 12.72 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.1761, allocations: 0 / 0.7031 GB, free: 12.72 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002023/0.1763, allocations: 217.6 kB / 0.7033 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1763, allocations: 3.984 kB / 0.7033 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.671e-05/0.1764, allocations: 15.98 kB / 0.7033 GB, free: 12.44 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.684e-06/0.1764, allocations: 0 / 0.7033 GB, free: 12.44 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.1764, allocations: 7.938 kB / 0.7033 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.1764, allocations: 4 kB / 0.7033 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1764, allocations: 0 / 0.7033 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003099/0.1767, allocations: 120.9 kB / 0.7034 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 6.37e-05/0.1768, allocations: 92.97 kB / 0.7035 GB, free: 12.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.438e-05/0.1768, allocations: 7.922 kB / 0.7035 GB, free: 12.17 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.894e-05/0.1769, allocations: 15.98 kB / 0.7036 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.078e-05/0.177, allocations: 4 kB / 0.7036 GB, free: 12.15 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.361e-05/0.177, allocations: 4 kB / 0.7036 GB, free: 12.15 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001978/0.1772, allocations: 192.5 kB / 0.7038 GB, free: 11.96 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.1772, allocations: 0 / 0.7038 GB, free: 11.96 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002228/0.1774, allocations: 16 kB / 0.7038 GB, free: 11.95 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.0007614/0.1782, allocations: 0.6821 MB / 0.7044 GB, free: 11.24 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0003041/0.1785, allocations: 63.81 kB / 0.7045 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1785, allocations: 0 / 0.7045 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001205/0.1786, allocations: 27.97 kB / 0.7045 GB, free: 11.15 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/0.1789, allocations: 35.69 kB / 0.7046 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002337/0.1812, allocations: 1.769 MB / 0.7063 GB, free: 9.25 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.1816, allocations: 0.7312 MB / 0.707 GB, free: 8.492 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 7.371e-05/0.1816, allocations: 20.72 kB / 0.707 GB, free: 8.473 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.192e-05/0.1817, allocations: 43.41 kB / 0.7071 GB, free: 8.43 MB / 0.5294 GB Notification: Performance of SimCode: time 3.81e-07/0.1817, allocations: 3.938 kB / 0.7071 GB, free: 8.426 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02625/0.208, allocations: 3.629 MB / 0.7106 GB, free: 4.906 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.929/8.137, allocations: 15.81 kB / 0.7106 GB, free: 4.891 MB / 0.5294 GB " [Timeout remaining time 652] (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: 11.720950369999628] Failed to read output from testmodel.py, exit status != 0: 8.208795764992828 8.231959801 8.057609147 Calling exit ...