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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002151/0.002151, allocations: 178 kB / 7.457 MB, free: 2.238 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6059/0.6059, allocations: 133.5 MB / 141.4 MB, free: 15.69 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.155/1.155, allocations: 221.3 MB / 395 MB, free: 10.21 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008409/0.000841, allocations: 105.2 kB / 477.8 MB, free: 10.88 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.296e-06/3.326e-06, allocations: 0 / 0.5528 GB, free: 89.06 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1163, allocations: 82.3 MB / 0.6332 GB, free: 14.11 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3685/0.4848, allocations: 112.4 MB / 0.743 GB, free: 10.71 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001674/0.485, allocations: 76.34 kB / 0.7431 GB, free: 10.71 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.007967/0.493, allocations: 3.017 MB / 0.746 GB, free: 10.55 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.468e-06/0.493, allocations: 3.812 kB / 0.746 GB, free: 10.55 MB / 0.4948 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.0004073/0.4935, allocations: 442.3 kB / 0.7465 GB, free: 26.16 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 1.78e-05/0.4935, allocations: 7.688 kB / 0.7465 GB, free: 26.16 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.232e-05/0.4935, allocations: 19.41 kB / 0.7465 GB, free: 26.14 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002142/0.4937, allocations: 238.5 kB / 0.7467 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.64e-06/0.4938, allocations: 3.875 kB / 0.7467 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.735e-06/0.4938, allocations: 3.812 kB / 0.7467 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.817e-05/0.4938, allocations: 35.56 kB / 0.7468 GB, free: 25.91 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001096/0.494, allocations: 79.58 kB / 0.7468 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.338e-06/0.494, allocations: 3.844 kB / 0.7468 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.494, allocations: 0.6562 kB / 0.7468 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.394e-06/0.494, allocations: 0 / 0.7468 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005028/0.4945, allocations: 365.3 kB / 0.7472 GB, free: 25.63 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 3.75e-05/0.4945, allocations: 22.88 kB / 0.7472 GB, free: 25.61 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.883e-05/0.4946, allocations: 12.16 kB / 0.7472 GB, free: 25.6 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.402e-05/0.4946, allocations: 0 / 0.7472 GB, free: 25.6 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.826e-05/0.4947, allocations: 76.86 kB / 0.7473 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=3): time 8.42e-07/0.4947, allocations: 0 / 0.7473 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3): time 0.00014/0.4948, allocations: 71.03 kB / 0.7474 GB, free: 25.48 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.772e-05/0.4949, allocations: 77.86 kB / 0.7474 GB, free: 25.39 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.4951, allocations: 198.2 kB / 0.7476 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/0.4951, allocations: 25.7 kB / 0.7477 GB, free: 25.26 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 4.183e-05/0.4951, allocations: 108.9 kB / 0.7478 GB, free: 25.17 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.504e-05/0.4952, allocations: 8.469 kB / 0.7478 GB, free: 25.17 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-06/0.4952, allocations: 0 / 0.7478 GB, free: 25.17 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.4953, allocations: 330.2 kB / 0.7481 GB, free: 24.85 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.121e-05/0.4953, allocations: 14.69 kB / 0.7481 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.59e-05/0.4953, allocations: 28.22 kB / 0.7481 GB, free: 24.81 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.49e-05/0.4954, allocations: 13.72 kB / 0.7481 GB, free: 24.81 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.4954, allocations: 0 / 0.7481 GB, free: 24.81 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.496e-05/0.4955, allocations: 70.28 kB / 0.7482 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.755e-06/0.4955, allocations: 8 kB / 0.7482 GB, free: 24.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.4955, allocations: 11.92 kB / 0.7482 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/0.4955, allocations: 0.5625 kB / 0.7482 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001009/0.4956, allocations: 19.03 kB / 0.7482 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.4956, allocations: 0.7031 kB / 0.7482 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.035e-05/0.4957, allocations: 18.8 kB / 0.7483 GB, free: 24.75 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.243e-06/0.4957, allocations: 4.594 kB / 0.7483 GB, free: 24.75 MB / 0.5105 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 7.39e-05/0.4958, allocations: 113.3 kB / 0.7484 GB, free: 24.63 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.158e-05/0.4958, allocations: 15.5 kB / 0.7484 GB, free: 24.62 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.38e-05/0.4959, allocations: 18.83 kB / 0.7484 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.4959, allocations: 3.984 kB / 0.7484 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.4959, allocations: 0.75 kB / 0.7484 GB, free: 24.61 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.4959, allocations: 4 kB / 0.7484 GB, free: 24.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001617/0.4961, allocations: 194.3 kB / 0.7486 GB, free: 24.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.4961, allocations: 0 / 0.7486 GB, free: 24.44 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.43e-05/0.4962, allocations: 15.59 kB / 0.7486 GB, free: 24.44 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.4962, allocations: 0 / 0.7486 GB, free: 24.44 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/0.4962, allocations: 0.5625 kB / 0.7486 GB, free: 24.44 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.4962, allocations: 0 / 0.7486 GB, free: 24.44 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.4962, allocations: 4.516 kB / 0.7486 GB, free: 24.44 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001179/0.4963, allocations: 88.34 kB / 0.7487 GB, free: 24.37 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.931e-05/0.4964, allocations: 94.84 kB / 0.7488 GB, free: 24.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.477e-05/0.4964, allocations: 8.547 kB / 0.7488 GB, free: 24.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.506e-05/0.4965, allocations: 19.59 kB / 0.7488 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.594e-05/0.4966, allocations: 5.812 kB / 0.7488 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.946e-05/0.4966, allocations: 5.062 kB / 0.7488 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0001085/0.4967, allocations: 154.7 kB / 0.749 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0001966/0.4969, allocations: 23.81 kB / 0.749 GB, free: 24.18 MB / 0.5105 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.0001884/0.4971, allocations: 128.4 kB / 0.7491 GB, free: 24.07 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 8.567e-05/0.4972, allocations: 20.91 kB / 0.7491 GB, free: 24.07 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4972, allocations: 0 / 0.7491 GB, free: 24.07 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 2.666e-05/0.4972, allocations: 19.84 kB / 0.7492 GB, free: 24.06 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002074/0.4974, allocations: 39.05 kB / 0.7492 GB, free: 24.05 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003513/0.4978, allocations: 173.6 kB / 0.7494 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002976/0.4981, allocations: 0.7489 MB / 0.7501 GB, free: 23.25 MB / 0.5105 GB Notification: Performance of SimCode: time 2.3e-07/0.4981, allocations: 0 / 0.7501 GB, free: 23.25 MB / 0.5105 GB Notification: Performance of Templates: time 0.003785/0.5019, allocations: 1.552 MB / 0.7516 GB, free: 23.08 MB / 0.5105 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)