Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.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/HanserModelica 2.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 HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.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(HanserModelica.VariablesTypes.ComplexCalculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation") translateModel(HanserModelica.VariablesTypes.ComplexCalculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 169.2 kB / 7.64 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06667/0.06667, allocations: 8.719 MB / 16.79 MB, free: 3.375 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 221.5 MB / 240.9 MB, free: 13.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 99.75 kB / 293.9 MB, free: 7.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.756e-05/1.759e-05, allocations: 4 kB / 352.6 MB, free: 1.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1396, allocations: 52.55 MB / 405.2 MB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.434/0.5737, allocations: 77.17 MB / 482.4 MB, free: 10.14 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002159/0.5739, allocations: 64.5 kB / 482.4 MB, free: 10.11 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006619/0.5806, allocations: 3.112 MB / 485.5 MB, free: 7.672 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.5806, allocations: 0 / 485.5 MB, free: 7.672 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.695e-06/0.5806, allocations: 0 / 485.5 MB, free: 7.672 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005392/0.5812, allocations: 378.3 kB / 485.9 MB, free: 7.258 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.5812, allocations: 11.98 kB / 485.9 MB, free: 7.246 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.874e-05/0.5813, allocations: 11.2 kB / 485.9 MB, free: 7.242 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.94e-05/0.5814, allocations: 170.6 kB / 486.1 MB, free: 7.039 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/0.5814, allocations: 0 / 486.1 MB, free: 7.039 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.5814, allocations: 0 / 486.1 MB, free: 7.039 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001166/0.5815, allocations: 35.98 kB / 486.1 MB, free: 7.004 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.649e-05/0.5816, allocations: 49.69 kB / 486.2 MB, free: 6.949 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.5817, allocations: 0 / 486.2 MB, free: 6.949 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.5817, allocations: 3.953 kB / 486.2 MB, free: 6.945 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.5817, allocations: 3.938 kB / 486.2 MB, free: 6.941 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001477/0.5818, allocations: 162.2 kB / 486.3 MB, free: 6.746 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001373/0.582, allocations: 63.75 kB / 486.4 MB, free: 6.676 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.659e-05/0.582, allocations: 24.98 kB / 486.4 MB, free: 6.648 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.84e-05/0.5821, allocations: 0 / 486.4 MB, free: 6.648 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.763e-05/0.5821, allocations: 37.25 kB / 486.5 MB, free: 6.605 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 9.52e-07/0.5821, allocations: 0 / 486.5 MB, free: 6.605 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001677/0.5823, allocations: 72.97 kB / 486.5 MB, free: 6.531 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.078e-05/0.5823, allocations: 51.41 kB / 486.6 MB, free: 6.469 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.288e-05/0.5824, allocations: 104.9 kB / 486.7 MB, free: 6.359 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.106e-05/0.5824, allocations: 27.11 kB / 486.7 MB, free: 6.328 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.582e-05/0.5824, allocations: 88.12 kB / 486.8 MB, free: 6.238 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.143e-05/0.5825, allocations: 13.75 kB / 486.8 MB, free: 6.227 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.47e-06/0.5825, allocations: 0 / 486.8 MB, free: 6.227 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.232e-05/0.5825, allocations: 322.8 kB / 487.1 MB, free: 5.902 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.009e-05/0.5826, allocations: 16 kB / 487.1 MB, free: 5.887 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.757e-05/0.5826, allocations: 16 kB / 487.2 MB, free: 5.871 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.645e-05/0.5826, allocations: 16 kB / 487.2 MB, free: 5.855 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.5826, allocations: 4 kB / 487.2 MB, free: 5.852 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001052/0.5828, allocations: 77.59 kB / 487.3 MB, free: 5.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.5828, allocations: 6.031 kB / 487.3 MB, free: 5.766 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.5828, allocations: 0 / 487.3 MB, free: 5.766 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.5828, allocations: 0 / 487.3 MB, free: 5.766 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.5829, allocations: 11.98 kB / 487.3 MB, free: 5.754 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.5829, allocations: 1.531 kB / 487.3 MB, free: 5.754 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.975e-05/0.583, allocations: 6.219 kB / 487.3 MB, free: 5.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-06/0.583, allocations: 3.938 kB / 487.3 MB, free: 5.746 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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 5.075e-05/0.5831, allocations: 112.9 kB / 487.4 MB, free: 5.629 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.373e-05/0.5831, allocations: 7.906 kB / 487.4 MB, free: 5.621 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001687/0.5832, allocations: 94.22 kB / 487.5 MB, free: 5.523 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.5833, allocations: 4 kB / 487.5 MB, free: 5.52 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.5833, allocations: 0 / 487.5 MB, free: 5.52 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.5833, allocations: 4.641 kB / 487.5 MB, free: 5.516 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.607e-05/0.5834, allocations: 160.2 kB / 487.7 MB, free: 5.324 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.5834, allocations: 0 / 487.7 MB, free: 5.324 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.384e-05/0.5835, allocations: 15.98 kB / 487.7 MB, free: 5.309 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.5835, allocations: 6.344 kB / 487.7 MB, free: 5.305 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.5835, allocations: 4 kB / 487.7 MB, free: 5.301 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.5835, allocations: 0 / 487.7 MB, free: 5.301 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.5835, allocations: 0.75 kB / 487.7 MB, free: 5.301 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001245/0.5837, allocations: 113 kB / 487.8 MB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.459e-05/0.5837, allocations: 85.09 kB / 487.9 MB, free: 5.07 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.647e-05/0.5837, allocations: 1.219 kB / 487.9 MB, free: 5.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.321e-05/0.5838, allocations: 0.5 kB / 487.9 MB, free: 5.07 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.934e-05/0.5838, allocations: 4 kB / 487.9 MB, free: 5.066 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.039e-06/0.5838, allocations: 4 kB / 487.9 MB, free: 5.062 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.477e-05/0.5838, allocations: 83.97 kB / 488 MB, free: 4.98 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5838, allocations: 3.094 kB / 488 MB, free: 4.98 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001816/0.584, allocations: 15.98 kB / 488 MB, free: 4.965 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.000114/0.5841, allocations: 103.2 kB / 488.1 MB, free: 4.855 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001054/0.5843, allocations: 51.94 kB / 488.1 MB, free: 4.805 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.5843, allocations: 0 / 488.1 MB, free: 4.805 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.698e-05/0.5843, allocations: 28 kB / 488.2 MB, free: 4.777 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001121/0.5844, allocations: 0 / 488.2 MB, free: 4.777 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002115/0.5846, allocations: 95.53 kB / 488.3 MB, free: 4.664 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001123/0.5848, allocations: 0.6892 MB / 488.9 MB, free: 3.949 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.446e-05/0.5848, allocations: 3.984 kB / 488.9 MB, free: 3.945 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.393e-05/0.5849, allocations: 11.44 kB / 489 MB, free: 3.938 MB / 346.7 MB Notification: Performance of SimCode: time 2.21e-07/0.5849, allocations: 0 / 489 MB, free: 3.938 MB / 346.7 MB Notification: Performance of Templates: time 0.00234/0.5872, allocations: 0.6341 MB / 489.6 MB, free: 3.336 MB / 346.7 MB make -j1 -f HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.makefile (rm -f HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe ; mkfifo HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe ; head -c 1048576 < HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe >> ../files/HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.sim & ./HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe 2>&1)