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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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: translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000803/0.0008029, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008272/0.0008271, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.2/1.2, allocations: 223.2 MB / 239.9 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8418/0.8418, allocations: 135.2 MB / 426.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002977/0.0002978, allocations: 8 kB / 0.5068 GB, free: 5.246 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1416, allocations: 82.32 MB / 0.5872 GB, free: 3.105 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.001619/0.1432, allocations: 1.315 MB / 0.5885 GB, free: 1.781 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006574/0.1439, allocations: 0.4914 MB / 0.589 GB, free: 1.285 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.52e-05/0.144, allocations: 0 / 0.589 GB, free: 1.285 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001285/0.1441, allocations: 23.8 kB / 0.589 GB, free: 1.262 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001911/0.1443, allocations: 59.84 kB / 0.589 GB, free: 1.203 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001079/0.1444, allocations: 47.94 kB / 0.5891 GB, free: 1.156 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001433/0.1446, allocations: 99.75 kB / 0.5892 GB, free: 1.059 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.1447, allocations: 49.39 kB / 0.5892 GB, free: 1.004 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.398e-05/0.1448, allocations: 43.83 kB / 0.5893 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.848e-05/0.1449, allocations: 43.78 kB / 0.5893 GB, free: 0.918 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.378e-05/0.1449, allocations: 3.938 kB / 0.5893 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.813e-05/0.1449, allocations: 8 kB / 0.5893 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.606e-05/0.145, allocations: 35.89 kB / 0.5894 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.169e-05/0.145, allocations: 45.64 kB / 0.5894 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001194/0.1452, allocations: 108 kB / 0.5895 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1452, allocations: 4 kB / 0.5895 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1452, allocations: 0 / 0.5895 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.506e-06/0.1452, allocations: 0 / 0.5895 GB, free: 0.7109 MB / 494.1 MB 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.0004988/0.1457, allocations: 454.5 kB / 0.5899 GB, free: 224 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.1457, allocations: 12.03 kB / 0.59 GB, free: 212 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.002e-05/0.1458, allocations: 15.81 kB / 0.59 GB, free: 196 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002402/0.146, allocations: 231.6 kB / 0.5902 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.115e-06/0.146, allocations: 4 kB / 0.5902 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.192e-05/0.1461, allocations: 3.938 kB / 0.5902 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002465/0.1463, allocations: 116.8 kB / 0.5903 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.1463, allocations: 7.984 kB / 0.5903 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.1463, allocations: 0 / 0.5903 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1464, allocations: 0 / 0.5903 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002318/0.1466, allocations: 79.94 kB / 0.5904 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005024/0.1471, allocations: 392.4 kB / 0.5908 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001283/0.1472, allocations: 50.55 kB / 0.5908 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/0.1473, allocations: 4.062 kB / 0.5908 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000223/0.1475, allocations: 108.9 kB / 0.5909 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.1475, allocations: 4 kB / 0.5909 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004014/0.1479, allocations: 141.4 kB / 0.5911 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.678e-05/0.148, allocations: 77.11 kB / 0.5911 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002235/0.1482, allocations: 253 kB / 0.5914 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.1482, allocations: 29.64 kB / 0.5914 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.413e-05/0.1483, allocations: 128 kB / 0.5915 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.519e-05/0.1483, allocations: 11.91 kB / 0.5915 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.477e-06/0.1483, allocations: 0 / 0.5915 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001019/0.1484, allocations: 334.8 kB / 0.5919 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.1485, allocations: 27.97 kB / 0.5919 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001107/0.1486, allocations: 55.41 kB / 0.5919 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001073/0.1488, allocations: 31.98 kB / 0.592 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1488, allocations: 0 / 0.592 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002633/0.149, allocations: 117.4 kB / 0.5921 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.1491, allocations: 8 kB / 0.5921 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1491, allocations: 4.234 kB / 0.5921 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.237e-06/0.1491, allocations: 4.094 kB / 0.5921 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-05/0.1492, allocations: 15.98 kB / 0.5921 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.1492, allocations: 3.984 kB / 0.5921 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.618e-05/0.1493, allocations: 15.91 kB / 0.5921 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.652e-06/0.1493, allocations: 3.938 kB / 0.5921 GB, free: 13.78 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.432e-05/0.1494, allocations: 140.4 kB / 0.5923 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.377e-05/0.1494, allocations: 19.8 kB / 0.5923 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.842e-05/0.1495, allocations: 17.25 kB / 0.5923 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.1495, allocations: 3.953 kB / 0.5923 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.1495, allocations: 0 / 0.5923 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.043e-06/0.1495, allocations: 0 / 0.5923 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001423/0.1496, allocations: 217.6 kB / 0.5925 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1496, allocations: 4 kB / 0.5925 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.538e-05/0.1497, allocations: 11.98 kB / 0.5925 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1497, allocations: 4 kB / 0.5925 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.801e-06/0.1497, allocations: 0 / 0.5925 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1498, allocations: 7.938 kB / 0.5925 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.1498, allocations: 7.953 kB / 0.5925 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000267/0.15, allocations: 140.8 kB / 0.5927 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.909e-05/0.1501, allocations: 96.91 kB / 0.5928 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.971e-05/0.1501, allocations: 0 / 0.5928 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.208e-05/0.1502, allocations: 15.98 kB / 0.5928 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.547e-05/0.1502, allocations: 7.938 kB / 0.5928 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.1503, allocations: 8 kB / 0.5928 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001476/0.1504, allocations: 192.5 kB / 0.593 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.61e-07/0.1504, allocations: 0 / 0.593 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002052/0.1506, allocations: 23.84 kB / 0.593 GB, free: 12.78 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001696/0.1508, allocations: 116 kB / 0.5931 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000257/0.1511, allocations: 67.95 kB / 0.5932 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1511, allocations: 7.938 kB / 0.5932 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00011/0.1512, allocations: 36.16 kB / 0.5932 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002012/0.1514, allocations: 36.41 kB / 0.5933 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004237/0.1519, allocations: 310.1 kB / 0.5936 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002379/0.1521, allocations: 0.724 MB / 0.5943 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.842e-05/0.1522, allocations: 20.47 kB / 0.5943 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.221e-05/0.1522, allocations: 23.42 kB / 0.5943 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1522, allocations: 0 / 0.5943 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of Templates: time 0.003684/0.1559, allocations: 1.545 MB / 0.5958 GB, free: 9.883 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile Environment - environmentSimulation: (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 -lv LOG_STATS > IDEAS_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) Environment - environmentSimulation: