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.001536/0.001536, allocations: 78.09 kB / 19.76 MB, free: 1.875 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.001607/0.001607, allocations: 158 kB / 23.01 MB, free: 4.59 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: 177.2 MB / 203.4 MB, free: 8.977 MB / 190.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.7993/0.7993, allocations: 101.3 MB / 361.1 MB, free: 9.562 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [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: translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter") [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.003227/0.003227, allocations: 62.47 kB / 0.5356 GB, free: 5.273 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. Notification: Performance of FrontEnd - Absyn->SCode: time 0.1503/0.1536, allocations: 85.88 MB / 0.6195 GB, free: 1.633 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002968/0.1565, allocations: 1.634 MB / 0.6211 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001054/0.1576, allocations: 0.5805 MB / 0.6216 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.777e-05/0.1577, allocations: 7.938 kB / 0.6216 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001609/0.1578, allocations: 31.72 kB / 0.6217 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002539/0.1581, allocations: 74.86 kB / 0.6217 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002009/0.1583, allocations: 79.84 kB / 0.6218 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002096/0.1585, allocations: 131.5 kB / 0.6219 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/0.1586, allocations: 33.61 kB / 0.622 GB, free: 15.05 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001662/0.1588, allocations: 67.75 kB / 0.622 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001186/0.1589, allocations: 63.69 kB / 0.6221 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.657e-05/0.1589, allocations: 8 kB / 0.6221 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.139e-05/0.159, allocations: 27.94 kB / 0.6221 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.1591, allocations: 47.83 kB / 0.6222 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.323e-05/0.1592, allocations: 47.67 kB / 0.6222 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002313/0.1594, allocations: 151.3 kB / 0.6224 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1594, allocations: 3.938 kB / 0.6224 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.362e-06/0.1594, allocations: 0 / 0.6224 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.586e-06/0.1594, allocations: 0 / 0.6224 GB, free: 14.64 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.0006377/0.1601, allocations: 405.2 kB / 0.6228 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.048e-05/0.1601, allocations: 8.031 kB / 0.6228 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001719/0.1603, allocations: 40.78 kB / 0.6228 GB, free: 14.17 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003071/0.1606, allocations: 178.2 kB / 0.623 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.1606, allocations: 4.375 kB / 0.623 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.699e-05/0.1606, allocations: 8.312 kB / 0.623 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003255/0.1609, allocations: 165.3 kB / 0.6231 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.1609, allocations: 0 / 0.6231 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.1609, allocations: 8 kB / 0.6232 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.296e-06/0.1609, allocations: 4 kB / 0.6232 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002711/0.1612, allocations: 59.94 kB / 0.6232 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005501/0.1618, allocations: 304.3 kB / 0.6235 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001505/0.1619, allocations: 38.55 kB / 0.6235 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.162, allocations: 32.91 kB / 0.6236 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.376e-05/0.1621, allocations: 0 / 0.6236 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002688/0.1623, allocations: 148.4 kB / 0.6237 GB, free: 13.12 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 8.92e-07/0.1623, allocations: 0 / 0.6237 GB, free: 13.12 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0004488/0.1628, allocations: 125.5 kB / 0.6238 GB, free: 12.99 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.226e-05/0.1628, allocations: 81.05 kB / 0.6239 GB, free: 12.89 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002688/0.1631, allocations: 244.1 kB / 0.6241 GB, free: 12.65 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.113e-05/0.1631, allocations: 25.7 kB / 0.6242 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 9.772e-05/0.1632, allocations: 128.1 kB / 0.6243 GB, free: 12.49 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.374e-05/0.1632, allocations: 19.83 kB / 0.6243 GB, free: 12.47 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.283e-05/0.1633, allocations: 17.72 kB / 0.6243 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000163/0.1634, allocations: 322.8 kB / 0.6246 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.1636, allocations: 27.91 kB / 0.6247 GB, free: 12.09 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001545/0.1637, allocations: 73.11 kB / 0.6247 GB, free: 12 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002356/0.1639, allocations: 74.55 kB / 0.6248 GB, free: 11.92 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.164, allocations: 0 / 0.6248 GB, free: 11.92 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003033/0.1643, allocations: 105.5 kB / 0.6249 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.1643, allocations: 4 kB / 0.6249 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-06/0.1643, allocations: 0 / 0.6249 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.1643, allocations: 4 kB / 0.6249 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.1644, allocations: 15.92 kB / 0.6249 GB, free: 11.79 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.1644, allocations: 3.938 kB / 0.6249 GB, free: 11.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.188e-05/0.1645, allocations: 11.98 kB / 0.6249 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.1645, allocations: 0 / 0.6249 GB, free: 11.77 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.0001124/0.1646, allocations: 129.8 kB / 0.6251 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.324e-05/0.1646, allocations: 20.22 kB / 0.6251 GB, free: 11.62 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.02e-05/0.1647, allocations: 16.97 kB / 0.6251 GB, free: 11.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.1647, allocations: 11.91 kB / 0.6251 GB, free: 11.59 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.1647, allocations: 3.938 kB / 0.6251 GB, free: 11.59 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.1647, allocations: 0 / 0.6251 GB, free: 11.59 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001572/0.1648, allocations: 149.3 kB / 0.6253 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1648, allocations: 0 / 0.6253 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.404e-05/0.1649, allocations: 7.984 kB / 0.6253 GB, free: 11.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1649, allocations: 4 kB / 0.6253 GB, free: 11.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.572e-06/0.1649, allocations: 0 / 0.6253 GB, free: 11.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1649, allocations: 4 kB / 0.6253 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1649, allocations: 0 / 0.6253 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003262/0.1653, allocations: 140.8 kB / 0.6254 GB, free: 11.24 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 2.19e-05/0.1653, allocations: 7.953 kB / 0.6254 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.784e-05/0.1653, allocations: 0 / 0.6254 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.901e-05/0.1654, allocations: 11.98 kB / 0.6254 GB, free: 11.22 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.925e-05/0.1654, allocations: 7.922 kB / 0.6254 GB, free: 11.21 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-05/0.1654, allocations: 8 kB / 0.6254 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001861/0.1656, allocations: 181.6 kB / 0.6256 GB, free: 11.03 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.1656, allocations: 0 / 0.6256 GB, free: 11.03 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002312/0.1659, allocations: 27.89 kB / 0.6256 GB, free: 11 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.0002048/0.1661, allocations: 110.1 kB / 0.6257 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.000297/0.1664, allocations: 63.88 kB / 0.6258 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1664, allocations: 0 / 0.6258 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001214/0.1665, allocations: 23.97 kB / 0.6258 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/0.1668, allocations: 47.11 kB / 0.6259 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005213/0.1673, allocations: 300.5 kB / 0.6262 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001065/0.1674, allocations: 102.5 kB / 0.6263 GB, free: 10.31 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 6.664e-05/0.1675, allocations: 24.53 kB / 0.6263 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.674e-05/0.1675, allocations: 20.5 kB / 0.6263 GB, free: 10.27 MB / 0.5294 GB Notification: Performance of SimCode: time 3.11e-07/0.1675, allocations: 0 / 0.6263 GB, free: 10.27 MB / 0.5294 GB Notification: Performance of Templates: time 0.005109/0.1726, allocations: 1.742 MB / 0.628 GB, free: 8.559 MB / 0.5294 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 660] (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 & ./IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.09245222597383] Failed to read output from testmodel.py, exit status != 0: 0.18144209298770875 0.20730773100000002 0.042961283 Calling exit ...