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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 108.1 kB / 16.4 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 191.7 kB / 19.36 MB, free: 3.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 222.9 MB / 245.1 MB, free: 15.02 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.8314/0.8314, allocations: 132.2 MB / 429.4 MB, free: 5.992 MB / 334.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.00186/0.00186, allocations: 70.33 kB / 0.5893 GB, free: 24.12 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1587/0.1605, allocations: 80.21 MB / 0.6677 GB, free: 9.867 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003224/0.1638, allocations: 1.621 MB / 0.6693 GB, free: 8.234 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009189/0.1648, allocations: 0.5455 MB / 0.6698 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.287e-05/0.1648, allocations: 4 kB / 0.6698 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001762/0.165, allocations: 31.72 kB / 0.6698 GB, free: 7.648 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000241/0.1653, allocations: 65.62 kB / 0.6699 GB, free: 7.586 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001611/0.1655, allocations: 71.89 kB / 0.67 GB, free: 7.516 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001912/0.1657, allocations: 127.5 kB / 0.6701 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001642/0.1658, allocations: 45.75 kB / 0.6701 GB, free: 7.34 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001238/0.166, allocations: 55.77 kB / 0.6702 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001243/0.1661, allocations: 67.7 kB / 0.6702 GB, free: 7.219 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.517e-05/0.1661, allocations: 8 kB / 0.6703 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.648e-05/0.1662, allocations: 27.97 kB / 0.6703 GB, free: 7.184 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001039/0.1663, allocations: 47.84 kB / 0.6703 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.566e-05/0.1664, allocations: 59.59 kB / 0.6704 GB, free: 7.078 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002555/0.1667, allocations: 151.2 kB / 0.6705 GB, free: 6.93 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1667, allocations: 3.938 kB / 0.6705 GB, free: 6.926 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.433e-06/0.1667, allocations: 0 / 0.6705 GB, free: 6.926 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.187e-05/0.1667, allocations: 0 / 0.6705 GB, free: 6.926 MB / 0.4981 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.000765/0.1675, allocations: 480.3 kB / 0.671 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.1675, allocations: 12.03 kB / 0.671 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.105e-05/0.1676, allocations: 30.75 kB / 0.671 GB, free: 6.359 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.387e-05/0.1677, allocations: 16.84 kB / 0.671 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004084/0.1681, allocations: 248.9 kB / 0.6713 GB, free: 6.059 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/0.1681, allocations: 4.375 kB / 0.6713 GB, free: 6.055 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.747e-05/0.1681, allocations: 12.38 kB / 0.6713 GB, free: 6.043 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002957/0.1684, allocations: 105.8 kB / 0.6714 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.1684, allocations: 3.984 kB / 0.6714 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.534e-05/0.1685, allocations: 3.984 kB / 0.6714 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.1685, allocations: 0 / 0.6714 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002409/0.1687, allocations: 63.94 kB / 0.6715 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006337/0.1694, allocations: 388.5 kB / 0.6718 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001485/0.1695, allocations: 42.5 kB / 0.6719 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001141/0.1696, allocations: 28.89 kB / 0.6719 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.1697, allocations: 0 / 0.6719 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002381/0.1699, allocations: 101.1 kB / 0.672 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.1699, allocations: 0 / 0.672 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004569/0.1704, allocations: 121.5 kB / 0.6721 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/0.1704, allocations: 85.05 kB / 0.6722 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002759/0.1707, allocations: 253 kB / 0.6724 GB, free: 4.75 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.1708, allocations: 25.7 kB / 0.6725 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.687e-05/0.1709, allocations: 132.1 kB / 0.6726 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.259e-05/0.1709, allocations: 11.89 kB / 0.6726 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.933e-05/0.1709, allocations: 13.72 kB / 0.6726 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001695/0.1711, allocations: 330.8 kB / 0.6729 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.1713, allocations: 31.97 kB / 0.673 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.1714, allocations: 47.41 kB / 0.673 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002211/0.1716, allocations: 74.5 kB / 0.6731 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1716, allocations: 0 / 0.6731 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.00028/0.1719, allocations: 101.5 kB / 0.6732 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.1719, allocations: 4 kB / 0.6732 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.1719, allocations: 0 / 0.6732 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.172, allocations: 11.88 kB / 0.6732 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.1721, allocations: 16.08 kB / 0.6732 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.1721, allocations: 0 / 0.6732 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.693e-05/0.1722, allocations: 15.94 kB / 0.6732 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.554e-06/0.1722, allocations: 0 / 0.6732 GB, free: 3.898 MB / 0.4981 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.0001186/0.1723, allocations: 129.8 kB / 0.6733 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.963e-05/0.1724, allocations: 19.84 kB / 0.6734 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.671e-05/0.1724, allocations: 21.17 kB / 0.6734 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.1724, allocations: 0 / 0.6734 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.1724, allocations: 8 kB / 0.6734 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.1724, allocations: 0 / 0.6734 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001869/0.1726, allocations: 209.6 kB / 0.6736 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.1726, allocations: 0 / 0.6736 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.836e-05/0.1727, allocations: 15.92 kB / 0.6736 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.1727, allocations: 0 / 0.6736 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.1727, allocations: 7.922 kB / 0.6736 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.1727, allocations: 4 kB / 0.6736 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1727, allocations: 288 / 0.6736 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000302/0.1731, allocations: 125 kB / 0.6737 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.072e-05/0.1731, allocations: 92.97 kB / 0.6738 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.268e-05/0.1732, allocations: 7.938 kB / 0.6738 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.903e-05/0.1732, allocations: 7.984 kB / 0.6738 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.751e-05/0.1733, allocations: 7.984 kB / 0.6738 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.21e-05/0.1733, allocations: 4 kB / 0.6739 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001919/0.1735, allocations: 196.5 kB / 0.674 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.61e-07/0.1735, allocations: 0 / 0.674 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002194/0.1737, allocations: 19.94 kB / 0.6741 GB, free: 2.945 MB / 0.4981 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.0008753/0.1746, allocations: 0.6826 MB / 0.6747 GB, free: 2.238 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003034/0.1749, allocations: 63.75 kB / 0.6748 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.974e-06/0.175, allocations: 8.188 kB / 0.6748 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001275/0.1751, allocations: 23.97 kB / 0.6748 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003216/0.1754, allocations: 53.14 kB / 0.6749 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/0.1777, allocations: 1.747 MB / 0.6766 GB, free: 260 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004403/0.1782, allocations: 0.7197 MB / 0.6773 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.944e-05/0.1783, allocations: 20.53 kB / 0.6773 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.699e-05/0.1783, allocations: 43.42 kB / 0.6773 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of SimCode: time 2.5e-07/0.1783, allocations: 0 / 0.6773 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02561/0.204, allocations: 3.593 MB / 0.6808 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.061/8.265, allocations: 11.61 kB / 0.6809 GB, free: 11.95 MB / 0.5137 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=50 --tolerance=1e-06 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.617435259977356] Failed to read output from testmodel.py, exit status != 0: 8.335312854032964 8.358877166 8.188806677 Calling exit ...