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.00169/0.00169, allocations: 108.2 kB / 16.46 MB, free: 6.035 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.001322/0.001322, allocations: 191.8 kB / 19.41 MB, free: 3.539 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.411/1.411, allocations: 225.6 MB / 247.8 MB, free: 13.93 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.8213/0.8213, allocations: 134 MB / 436.6 MB, free: 1.285 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.001891/0.001891, allocations: 68.31 kB / 0.6051 GB, free: 15.71 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.1598, allocations: 84.67 MB / 0.6878 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.003304/0.1631, allocations: 1.644 MB / 0.6894 GB, free: 9.465 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0009688/0.164, allocations: 0.5533 MB / 0.6899 GB, free: 8.906 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.362e-05/0.1641, allocations: 3.938 kB / 0.6899 GB, free: 8.902 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.000187/0.1643, allocations: 27.72 kB / 0.69 GB, free: 8.875 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0002612/0.1646, allocations: 57.25 kB / 0.69 GB, free: 8.82 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001629/0.1647, allocations: 71.83 kB / 0.6901 GB, free: 8.75 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0002023/0.1649, allocations: 139.5 kB / 0.6902 GB, free: 8.613 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001431/0.1651, allocations: 37.77 kB / 0.6902 GB, free: 8.57 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001184/0.1652, allocations: 55.77 kB / 0.6903 GB, free: 8.516 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001111/0.1653, allocations: 59.75 kB / 0.6904 GB, free: 8.457 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 2.716e-05/0.1653, allocations: 8 kB / 0.6904 GB, free: 8.449 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 7.08e-05/0.1654, allocations: 31.92 kB / 0.6904 GB, free: 8.418 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 8.575e-05/0.1655, allocations: 39.84 kB / 0.6904 GB, free: 8.379 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 7.306e-05/0.1656, allocations: 63.53 kB / 0.6905 GB, free: 8.316 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0002277/0.1658, allocations: 147.3 kB / 0.6906 GB, free: 8.172 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1658, allocations: 4 kB / 0.6906 GB, free: 8.168 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.303e-06/0.1658, allocations: 3.938 kB / 0.6906 GB, free: 8.164 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.152e-06/0.1658, allocations: 0 / 0.6906 GB, free: 8.164 MB / 0.5137 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.0006896/0.1665, allocations: 478.4 kB / 0.6911 GB, free: 7.648 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.1665, allocations: 8.031 kB / 0.6911 GB, free: 7.641 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.813e-05/0.1666, allocations: 42.73 kB / 0.6911 GB, free: 7.59 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.561e-05/0.1666, allocations: 16.84 kB / 0.6912 GB, free: 7.574 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003365/0.167, allocations: 237 kB / 0.6914 GB, free: 7.301 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.664e-05/0.167, allocations: 8.375 kB / 0.6914 GB, free: 7.293 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.098e-05/0.167, allocations: 384 / 0.6914 GB, free: 7.293 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002815/0.1673, allocations: 109.8 kB / 0.6915 GB, free: 7.18 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.1673, allocations: 0 / 0.6915 GB, free: 7.18 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.803e-05/0.1673, allocations: 8 kB / 0.6915 GB, free: 7.172 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.1673, allocations: 0 / 0.6915 GB, free: 7.172 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002176/0.1675, allocations: 63.94 kB / 0.6916 GB, free: 7.109 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005947/0.1681, allocations: 388.5 kB / 0.6919 GB, free: 6.68 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001301/0.1683, allocations: 38.55 kB / 0.692 GB, free: 6.633 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/0.1684, allocations: 40.83 kB / 0.692 GB, free: 6.59 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 1.57e-05/0.1684, allocations: 0 / 0.692 GB, free: 6.59 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002448/0.1686, allocations: 93.09 kB / 0.6921 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.1686, allocations: 0 / 0.6921 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3): time 0.0004153/0.169, allocations: 125.5 kB / 0.6922 GB, free: 6.352 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.564e-05/0.1691, allocations: 81.05 kB / 0.6923 GB, free: 6.254 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002695/0.1694, allocations: 257 kB / 0.6925 GB, free: 5.992 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.21e-05/0.1694, allocations: 29.7 kB / 0.6926 GB, free: 5.957 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 9.192e-05/0.1695, allocations: 124.1 kB / 0.6927 GB, free: 5.832 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.93e-05/0.1695, allocations: 15.81 kB / 0.6927 GB, free: 5.816 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.914e-05/0.1695, allocations: 17.72 kB / 0.6927 GB, free: 5.793 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.1697, allocations: 326.8 kB / 0.693 GB, free: 5.465 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.1698, allocations: 27.97 kB / 0.6931 GB, free: 5.438 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.1699, allocations: 51.58 kB / 0.6931 GB, free: 5.375 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002108/0.1701, allocations: 74.48 kB / 0.6932 GB, free: 5.293 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1701, allocations: 3.938 kB / 0.6932 GB, free: 5.289 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002574/0.1704, allocations: 97.5 kB / 0.6933 GB, free: 5.188 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.1704, allocations: 12.09 kB / 0.6933 GB, free: 5.176 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.1704, allocations: 3.984 kB / 0.6933 GB, free: 5.172 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.1704, allocations: 3.938 kB / 0.6933 GB, free: 5.168 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.1705, allocations: 11.98 kB / 0.6933 GB, free: 5.156 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.1705, allocations: 0 / 0.6933 GB, free: 5.156 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.425e-05/0.1706, allocations: 15.94 kB / 0.6933 GB, free: 5.141 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-06/0.1706, allocations: 4 kB / 0.6933 GB, free: 5.137 MB / 0.5137 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.0001076/0.1707, allocations: 129.8 kB / 0.6935 GB, free: 5 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.081e-05/0.1708, allocations: 23.91 kB / 0.6935 GB, free: 4.977 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.78e-05/0.1708, allocations: 21.19 kB / 0.6935 GB, free: 4.957 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1708, allocations: 0 / 0.6935 GB, free: 4.957 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1708, allocations: 0 / 0.6935 GB, free: 4.957 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.1708, allocations: 3.984 kB / 0.6935 GB, free: 4.953 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001929/0.171, allocations: 213.6 kB / 0.6937 GB, free: 4.695 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.171, allocations: 0 / 0.6937 GB, free: 4.695 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.357e-05/0.1711, allocations: 7.984 kB / 0.6937 GB, free: 4.688 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.1711, allocations: 7.938 kB / 0.6937 GB, free: 4.68 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.1711, allocations: 7.938 kB / 0.6937 GB, free: 4.672 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1711, allocations: 4 kB / 0.6937 GB, free: 4.668 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1711, allocations: 0 / 0.6937 GB, free: 4.668 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002686/0.1714, allocations: 117 kB / 0.6938 GB, free: 4.535 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 6.699e-05/0.1714, allocations: 96.95 kB / 0.6939 GB, free: 4.422 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.189e-05/0.1715, allocations: 3.938 kB / 0.6939 GB, free: 4.418 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.411e-05/0.1715, allocations: 15.98 kB / 0.694 GB, free: 4.402 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.548e-05/0.1716, allocations: 4 kB / 0.694 GB, free: 4.398 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-05/0.1716, allocations: 4 kB / 0.694 GB, free: 4.395 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001826/0.1718, allocations: 188.5 kB / 0.6941 GB, free: 4.211 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.1718, allocations: 0 / 0.6941 GB, free: 4.211 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000219/0.172, allocations: 31.88 kB / 0.6942 GB, free: 4.18 MB / 0.5137 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.0006964/0.1727, allocations: 0.6782 MB / 0.6948 GB, free: 3.48 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002729/0.173, allocations: 63.88 kB / 0.6949 GB, free: 3.418 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.173, allocations: 0 / 0.6949 GB, free: 3.418 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001098/0.1731, allocations: 32.09 kB / 0.6949 GB, free: 3.387 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.1734, allocations: 37.09 kB / 0.695 GB, free: 3.348 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002179/0.1755, allocations: 1.759 MB / 0.6967 GB, free: 1.492 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003324/0.1759, allocations: 0.7197 MB / 0.6974 GB, free: 0.7461 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.516e-05/0.1759, allocations: 12.55 kB / 0.6974 GB, free: 0.7344 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.194e-05/0.176, allocations: 43.42 kB / 0.6974 GB, free: 0.6914 MB / 0.5137 GB Notification: Performance of SimCode: time 2.91e-07/0.176, allocations: 0 / 0.6974 GB, free: 0.6914 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02523/0.2012, allocations: 3.62 MB / 0.701 GB, free: 13.19 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.02/8.222, allocations: 3.984 kB / 0.701 GB, free: 13.19 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 & /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.646044686902314] Failed to read output from testmodel.py, exit status != 0: 8.29473906615749 8.320424316 8.150023558000001 Calling exit ...