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.001334/0.001334, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001585/0.001585, allocations: 214 kB / 22.25 MB, free: 4.855 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.508/1.508, allocations: 230.6 MB / 256 MB, free: 7.797 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.8766/0.8766, allocations: 134 MB / 446.4 MB, free: 9.953 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.001997/0.001997, allocations: 67.41 kB / 0.6185 GB, free: 6.938 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1723/0.1743, allocations: 85.91 MB / 0.7024 GB, free: 1.113 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.00307/0.1774, allocations: 1.626 MB / 0.7039 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00109/0.1785, allocations: 0.5845 MB / 0.7045 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.509e-05/0.1785, allocations: 3.938 kB / 0.7045 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001944/0.1787, allocations: 35.67 kB / 0.7046 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.000269/0.179, allocations: 66.67 kB / 0.7046 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002129/0.1792, allocations: 79.78 kB / 0.7047 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001973/0.1794, allocations: 135.6 kB / 0.7048 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001504/0.1796, allocations: 37.88 kB / 0.7049 GB, free: 14.53 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001721/0.1797, allocations: 63.72 kB / 0.7049 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001143/0.1798, allocations: 63.67 kB / 0.705 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.924e-05/0.1799, allocations: 8 kB / 0.705 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.514e-05/0.1799, allocations: 24 kB / 0.705 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.47e-05/0.18, allocations: 47.83 kB / 0.7051 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 5.544e-05/0.1801, allocations: 43.67 kB / 0.7051 GB, free: 14.29 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002289/0.1803, allocations: 151.3 kB / 0.7052 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1803, allocations: 0 / 0.7052 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.296e-06/0.1803, allocations: 4 kB / 0.7053 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.181e-06/0.1803, allocations: 0 / 0.7053 GB, free: 14.13 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.0006507/0.181, allocations: 409.2 kB / 0.7056 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.181, allocations: 8.031 kB / 0.7056 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.581e-05/0.1811, allocations: 38.75 kB / 0.7057 GB, free: 13.65 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001721/0.1812, allocations: 28.78 kB / 0.7057 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003416/0.1816, allocations: 186.1 kB / 0.7059 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.1816, allocations: 4.375 kB / 0.7059 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.079e-05/0.1816, allocations: 8.375 kB / 0.7059 GB, free: 13.4 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003373/0.1819, allocations: 165.1 kB / 0.7061 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.182, allocations: 0 / 0.7061 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.182, allocations: 7.984 kB / 0.7061 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.182, allocations: 0 / 0.7061 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002269/0.1822, allocations: 63.94 kB / 0.7061 GB, free: 13.15 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006255/0.1828, allocations: 347.6 kB / 0.7065 GB, free: 12.77 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001436/0.183, allocations: 38.55 kB / 0.7065 GB, free: 12.72 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.1831, allocations: 28.91 kB / 0.7065 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.545e-05/0.1831, allocations: 0 / 0.7065 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003233/0.1834, allocations: 148.4 kB / 0.7067 GB, free: 12.52 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.1834, allocations: 0 / 0.7067 GB, free: 12.52 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0004428/0.1839, allocations: 129.5 kB / 0.7068 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.304e-05/0.1839, allocations: 77.11 kB / 0.7069 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002848/0.1842, allocations: 256.9 kB / 0.7071 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.1842, allocations: 33.7 kB / 0.7071 GB, free: 11.99 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 9.857e-05/0.1843, allocations: 120.1 kB / 0.7073 GB, free: 11.87 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.033e-05/0.1844, allocations: 7.906 kB / 0.7073 GB, free: 11.86 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.41e-05/0.1844, allocations: 21.7 kB / 0.7073 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000164/0.1846, allocations: 322.8 kB / 0.7076 GB, free: 11.51 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001546/0.1847, allocations: 31.97 kB / 0.7076 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001565/0.1849, allocations: 77.05 kB / 0.7077 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002235/0.1851, allocations: 66.47 kB / 0.7078 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.1851, allocations: 4.031 kB / 0.7078 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000275/0.1854, allocations: 109.4 kB / 0.7079 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.1854, allocations: 4 kB / 0.7079 GB, free: 11.19 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1854, allocations: 0 / 0.7079 GB, free: 11.19 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.1854, allocations: 7.938 kB / 0.7079 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.1855, allocations: 11.92 kB / 0.7079 GB, free: 11.17 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.1855, allocations: 4 kB / 0.7079 GB, free: 11.17 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.749e-05/0.1856, allocations: 20.02 kB / 0.7079 GB, free: 11.15 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.1856, allocations: 0 / 0.7079 GB, free: 11.15 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.0001156/0.1857, allocations: 129.8 kB / 0.708 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.669e-05/0.1858, allocations: 19.86 kB / 0.7081 GB, free: 10.99 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.555e-05/0.1858, allocations: 21.27 kB / 0.7081 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.1858, allocations: 0 / 0.7081 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.1858, allocations: 8 kB / 0.7081 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.1858, allocations: 0 / 0.7081 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001713/0.186, allocations: 172.7 kB / 0.7082 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.186, allocations: 0 / 0.7082 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.708e-05/0.1861, allocations: 15.98 kB / 0.7083 GB, free: 10.74 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1861, allocations: 0 / 0.7083 GB, free: 10.74 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.1861, allocations: 7.938 kB / 0.7083 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1861, allocations: 0 / 0.7083 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1861, allocations: 0 / 0.7083 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002849/0.1864, allocations: 124.9 kB / 0.7084 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 2.996e-05/0.1864, allocations: 16.19 kB / 0.7084 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.312e-05/0.1864, allocations: 3.938 kB / 0.7084 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.123e-05/0.1865, allocations: 19.98 kB / 0.7084 GB, free: 10.55 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.362e-05/0.1866, allocations: 3.984 kB / 0.7084 GB, free: 10.55 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.06e-05/0.1866, allocations: 4 kB / 0.7084 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001846/0.1868, allocations: 192.5 kB / 0.7086 GB, free: 10.36 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.1868, allocations: 4 kB / 0.7086 GB, free: 10.36 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002173/0.187, allocations: 16 kB / 0.7086 GB, free: 10.34 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.0007479/0.1877, allocations: 0.6953 MB / 0.7093 GB, free: 9.621 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0002797/0.188, allocations: 51.88 kB / 0.7094 GB, free: 9.57 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.188, allocations: 7.938 kB / 0.7094 GB, free: 9.562 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.1881, allocations: 36.09 kB / 0.7094 GB, free: 9.527 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.1884, allocations: 38.5 kB / 0.7094 GB, free: 9.492 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00286/0.1913, allocations: 1.757 MB / 0.7112 GB, free: 7.629 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001079/0.1914, allocations: 110 kB / 0.7113 GB, free: 7.504 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 8.421e-05/0.1915, allocations: 20.55 kB / 0.7113 GB, free: 7.484 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.1916, allocations: 43.42 kB / 0.7113 GB, free: 7.441 MB / 0.5294 GB Notification: Performance of SimCode: time 9.52e-07/0.1916, allocations: 0 / 0.7113 GB, free: 7.441 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03022/0.2218, allocations: 4.27 MB / 0.7155 GB, free: 3.328 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.26, allocations: 7.453 kB / 0.7155 GB, free: 3.324 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: 15.091552841011435] Failed to read output from testmodel.py, exit status != 0: 11.38076528487727 11.397392586 11.213821276000001 Calling exit ...