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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0016/0.0016, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7636/0.7636, allocations: 133.6 MB / 141.6 MB, free: 2.918 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.616/1.616, allocations: 221.5 MB / 395.5 MB, free: 10.8 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008954/0.0008954, allocations: 104.3 kB / 478.2 MB, free: 1.328 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.471e-05/1.474e-05, allocations: 0 / 0.5535 GB, free: 9.07 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4591/0.4591, allocations: 82.31 MB / 0.6338 GB, free: 40.89 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1436/0.6027, allocations: 112.5 MB / 0.7437 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002219/0.603, allocations: 79.95 kB / 0.7438 GB, free: 10.2 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.008799/0.6118, allocations: 3.309 MB / 0.747 GB, free: 6.887 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.312e-06/0.6119, allocations: 0 / 0.747 GB, free: 6.887 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.338e-05/0.6119, allocations: 4 kB / 0.747 GB, free: 6.883 MB / 0.5261 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.000478/0.6124, allocations: 434 kB / 0.7474 GB, free: 6.414 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.6124, allocations: 12.03 kB / 0.7474 GB, free: 6.402 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.342e-05/0.6125, allocations: 19.72 kB / 0.7475 GB, free: 6.383 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002666/0.6127, allocations: 239.6 kB / 0.7477 GB, free: 6.105 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.6128, allocations: 4 kB / 0.7477 GB, free: 6.102 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.835e-05/0.6128, allocations: 7.984 kB / 0.7477 GB, free: 6.094 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.119e-05/0.6129, allocations: 24 kB / 0.7477 GB, free: 6.07 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001449/0.613, allocations: 77.66 kB / 0.7478 GB, free: 5.988 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.6131, allocations: 0 / 0.7478 GB, free: 5.988 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.994e-05/0.6131, allocations: 8 kB / 0.7478 GB, free: 5.98 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.6131, allocations: 0 / 0.7478 GB, free: 5.98 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005291/0.6136, allocations: 357.1 kB / 0.7482 GB, free: 5.594 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 4.52e-05/0.6137, allocations: 22.58 kB / 0.7482 GB, free: 5.562 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.831e-05/0.6137, allocations: 20.8 kB / 0.7482 GB, free: 5.539 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.665e-05/0.6137, allocations: 0 / 0.7482 GB, free: 5.539 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001224/0.6139, allocations: 81.06 kB / 0.7483 GB, free: 5.441 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 8.61e-07/0.6139, allocations: 0 / 0.7483 GB, free: 5.441 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0001476/0.614, allocations: 57.5 kB / 0.7483 GB, free: 5.379 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.6141, allocations: 89.11 kB / 0.7484 GB, free: 5.273 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001832/0.6143, allocations: 190.1 kB / 0.7486 GB, free: 5.078 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.6143, allocations: 25.7 kB / 0.7486 GB, free: 5.047 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 6.519e-05/0.6144, allocations: 135.9 kB / 0.7487 GB, free: 4.91 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.449e-05/0.6144, allocations: 3.906 kB / 0.7487 GB, free: 4.906 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.077e-06/0.6144, allocations: 0 / 0.7487 GB, free: 4.906 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.6145, allocations: 326.8 kB / 0.7491 GB, free: 4.578 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.298e-05/0.6145, allocations: 15.88 kB / 0.7491 GB, free: 4.562 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.322e-05/0.6146, allocations: 39.42 kB / 0.7491 GB, free: 4.512 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.384e-05/0.6146, allocations: 5.188 kB / 0.7491 GB, free: 4.508 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.6146, allocations: 4 kB / 0.7491 GB, free: 4.504 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.643e-05/0.6147, allocations: 69.44 kB / 0.7492 GB, free: 4.43 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.6147, allocations: 4 kB / 0.7492 GB, free: 4.426 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.6147, allocations: 4.125 kB / 0.7492 GB, free: 4.422 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.6148, allocations: 7.953 kB / 0.7492 GB, free: 4.414 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.6149, allocations: 11.98 kB / 0.7492 GB, free: 4.402 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.6149, allocations: 7.984 kB / 0.7492 GB, free: 4.395 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.064e-05/0.615, allocations: 11.98 kB / 0.7492 GB, free: 4.383 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-06/0.615, allocations: 4 kB / 0.7492 GB, free: 4.379 MB / 0.5261 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 () * 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 6.354e-05/0.6151, allocations: 108.9 kB / 0.7493 GB, free: 4.266 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.593e-05/0.6151, allocations: 19.8 kB / 0.7494 GB, free: 4.246 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.618e-05/0.6152, allocations: 17.56 kB / 0.7494 GB, free: 4.223 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.6152, allocations: 4.141 kB / 0.7494 GB, free: 4.219 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.6152, allocations: 3.953 kB / 0.7494 GB, free: 4.215 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.6152, allocations: 3.984 kB / 0.7494 GB, free: 4.211 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000137/0.6153, allocations: 190.2 kB / 0.7496 GB, free: 3.988 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.6153, allocations: 0 / 0.7496 GB, free: 3.988 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.352e-05/0.6154, allocations: 19.92 kB / 0.7496 GB, free: 3.969 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.6154, allocations: 7.984 kB / 0.7496 GB, free: 3.961 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.6154, allocations: 0 / 0.7496 GB, free: 3.961 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.6155, allocations: 0 / 0.7496 GB, free: 3.961 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.6155, allocations: 0 / 0.7496 GB, free: 3.961 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001119/0.6156, allocations: 88.89 kB / 0.7497 GB, free: 3.855 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 5.187e-05/0.6156, allocations: 96.91 kB / 0.7498 GB, free: 3.742 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.151e-05/0.6157, allocations: 0 / 0.7498 GB, free: 3.742 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.126e-05/0.6158, allocations: 15.98 kB / 0.7498 GB, free: 3.727 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.72e-05/0.6158, allocations: 8 kB / 0.7498 GB, free: 3.719 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.177e-05/0.6158, allocations: 11.92 kB / 0.7498 GB, free: 3.707 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001218/0.616, allocations: 149.8 kB / 0.75 GB, free: 3.562 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.41e-07/0.616, allocations: 4 kB / 0.75 GB, free: 3.559 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0001983/0.6162, allocations: 19.91 kB / 0.75 GB, free: 3.539 MB / 0.5261 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 () * 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.0002288/0.6164, allocations: 136.7 kB / 0.7501 GB, free: 3.398 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 9.595e-05/0.6165, allocations: 20 kB / 0.7501 GB, free: 3.379 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.6165, allocations: 3.938 kB / 0.7501 GB, free: 3.375 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 3e-05/0.6166, allocations: 15.98 kB / 0.7501 GB, free: 3.359 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002268/0.6168, allocations: 30.61 kB / 0.7502 GB, free: 3.328 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003571/0.6172, allocations: 192.8 kB / 0.7504 GB, free: 3.121 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002719/0.6174, allocations: 0.7158 MB / 0.7511 GB, free: 2.379 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 6.124e-05/0.6175, allocations: 20.64 kB / 0.7511 GB, free: 2.359 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.652e-05/0.6176, allocations: 11.44 kB / 0.7511 GB, free: 2.348 MB / 0.5261 GB Notification: Performance of SimCode: time 2.6e-07/0.6176, allocations: 3.938 kB / 0.7511 GB, free: 2.344 MB / 0.5261 GB Notification: Performance of Templates: time 0.003721/0.6213, allocations: 1.458 MB / 0.7525 GB, free: 0.9062 MB / 0.5261 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)