Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.0009791/0.0009791, allocations: 114.7 kB / 16.42 MB, free: 6.492 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.0009242/0.0009242, allocations: 185.7 kB / 17.35 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.188/1.188, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7311/0.7311, allocations: 135.1 MB / 426.3 MB, free: 4.098 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 65.45 kB / 0.5863 GB, free: 21.54 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1205, allocations: 80.92 MB / 0.6653 GB, free: 5.82 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.00265/0.1232, allocations: 1.632 MB / 0.6669 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008192/0.124, allocations: 0.5454 MB / 0.6674 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.288e-05/0.1241, allocations: 0 / 0.6674 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001463/0.1243, allocations: 31.78 kB / 0.6674 GB, free: 3.598 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002238/0.1245, allocations: 59.69 kB / 0.6675 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001517/0.1247, allocations: 71.84 kB / 0.6676 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001697/0.1249, allocations: 135.5 kB / 0.6677 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.125, allocations: 41.48 kB / 0.6677 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.1251, allocations: 59.77 kB / 0.6678 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.96e-05/0.1252, allocations: 59.7 kB / 0.6678 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.719e-05/0.1253, allocations: 8 kB / 0.6679 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.725e-05/0.1253, allocations: 23.97 kB / 0.6679 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.981e-05/0.1254, allocations: 47.78 kB / 0.6679 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.742e-05/0.1255, allocations: 63.59 kB / 0.668 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001794/0.1257, allocations: 143.4 kB / 0.6681 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1257, allocations: 0 / 0.6681 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.112e-06/0.1257, allocations: 0 / 0.6681 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.225e-06/0.1257, allocations: 4 kB / 0.6681 GB, free: 2.887 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.0005803/0.1263, allocations: 470.6 kB / 0.6686 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.1263, allocations: 9.109 kB / 0.6686 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.904e-05/0.1264, allocations: 16.75 kB / 0.6686 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002694/0.1266, allocations: 236.9 kB / 0.6688 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.1267, allocations: 8.375 kB / 0.6688 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.373e-05/0.1267, allocations: 12.3 kB / 0.6688 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002551/0.1269, allocations: 121.9 kB / 0.669 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.682e-06/0.127, allocations: 0 / 0.669 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.127, allocations: 0 / 0.669 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.127, allocations: 0 / 0.669 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002161/0.1272, allocations: 63.94 kB / 0.669 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005296/0.1277, allocations: 384.5 kB / 0.6694 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001208/0.1279, allocations: 46.48 kB / 0.6694 GB, free: 1.395 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.128, allocations: 28.89 kB / 0.6695 GB, free: 1.363 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.357e-05/0.128, allocations: 0 / 0.6695 GB, free: 1.363 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000198/0.1282, allocations: 104.9 kB / 0.6696 GB, free: 1.242 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.1282, allocations: 0 / 0.6696 GB, free: 1.242 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.000395/0.1286, allocations: 117.4 kB / 0.6697 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.1287, allocations: 85.11 kB / 0.6698 GB, free: 1.02 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002177/0.1289, allocations: 253 kB / 0.67 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.1289, allocations: 25.7 kB / 0.67 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.362e-05/0.129, allocations: 136 kB / 0.6701 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.635e-05/0.129, allocations: 7.906 kB / 0.6702 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.237e-05/0.129, allocations: 13.72 kB / 0.6702 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.766e-05/0.1291, allocations: 326.8 kB / 0.6705 GB, free: 248 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.1293, allocations: 27.97 kB / 0.6705 GB, free: 220 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001159/0.1294, allocations: 47.41 kB / 0.6706 GB, free: 160 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001952/0.1296, allocations: 74.48 kB / 0.6706 GB, free: 76 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.1296, allocations: 4 kB / 0.6706 GB, free: 72 kB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000283/0.1299, allocations: 97.39 kB / 0.6707 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.1299, allocations: 4 kB / 0.6707 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.1299, allocations: 0 / 0.6707 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.1299, allocations: 8.094 kB / 0.6707 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.13, allocations: 15.92 kB / 0.6707 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.238e-06/0.13, allocations: 3.938 kB / 0.6707 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.771e-05/0.1301, allocations: 15.98 kB / 0.6708 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.1302, allocations: 0 / 0.6708 GB, free: 15.92 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 8.747e-05/0.1302, allocations: 129.8 kB / 0.6709 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.011e-05/0.1303, allocations: 19.72 kB / 0.6709 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.67e-05/0.1303, allocations: 21.19 kB / 0.6709 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.1303, allocations: 11.92 kB / 0.6709 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.1303, allocations: 0 / 0.6709 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.025e-05/0.1304, allocations: 85.02 kB / 0.671 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.1304, allocations: 0 / 0.671 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.444e-05/0.1305, allocations: 12.27 kB / 0.671 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.315e-05/0.1305, allocations: 4 kB / 0.671 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003044/0.1308, allocations: 168.9 kB / 0.6712 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003126/0.1312, allocations: 282.4 kB / 0.6715 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001082/0.1313, allocations: 27.97 kB / 0.6715 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001469/0.1314, allocations: 188.5 kB / 0.6717 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of Backend: time 4.01e-07/0.1315, allocations: 4 kB / 0.6717 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005435/0.132, allocations: 156 kB / 0.6718 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of SimCode: time 0.000611/0.1326, allocations: 0.7389 MB / 0.6725 GB, free: 14 MB / 0.5137 GB Notification: Performance of Templates: time 0.00435/0.137, allocations: 1.924 MB / 0.6744 GB, free: 12.1 MB / 0.5137 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.sim & ./IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)