Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") [: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 trunk/package.mo): time 0.001238/0.001238, allocations: 199.4 kB / 8.54 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 225.5 MB / 234.4 MB, free: 3.43 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008896/0.0008896, allocations: 97.12 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1795/0.1795, allocations: 45.14 MB / 383.3 MB, free: 0.582 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 5.521e-06/5.641e-06, allocations: 0 / 452.6 MB, free: 76.24 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1113, allocations: 63.24 MB / 0.5038 GB, free: 13.06 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3192/0.4305, allocations: 97.46 MB / 0.5989 GB, free: 5.855 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.4308, allocations: 74.66 kB / 0.599 GB, free: 5.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03075/0.4616, allocations: 10.52 MB / 0.6093 GB, free: 13.28 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.38e-05/0.4617, allocations: 16 kB / 0.6093 GB, free: 13.26 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.00165/0.4634, allocations: 0.6994 MB / 0.61 GB, free: 12.55 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.4634, allocations: 12.03 kB / 0.61 GB, free: 12.54 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002204/0.4637, allocations: 59.25 kB / 0.6101 GB, free: 12.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008101/0.4645, allocations: 397.8 kB / 0.6104 GB, free: 12.11 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.769e-05/0.4645, allocations: 16 kB / 0.6104 GB, free: 12.1 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.523e-05/0.4646, allocations: 24 kB / 0.6105 GB, free: 12.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005747/0.4652, allocations: 245.7 kB / 0.6107 GB, free: 11.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006346/0.4659, allocations: 356.6 kB / 0.611 GB, free: 11.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.926e-05/0.4659, allocations: 7.844 kB / 0.6111 GB, free: 11.66 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.549e-05/0.4659, allocations: 4 kB / 0.6111 GB, free: 11.65 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/0.466, allocations: 15.98 kB / 0.6111 GB, free: 11.64 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00272/0.4687, allocations: 1.609 MB / 0.6126 GB, free: 10.27 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006517/0.4694, allocations: 235.1 kB / 0.6129 GB, free: 10.08 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002099/0.4696, allocations: 103.2 kB / 0.613 GB, free: 10.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.802e-05/0.4696, allocations: 4 kB / 0.613 GB, free: 10.01 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.771e-05/0.4697, allocations: 30.56 kB / 0.613 GB, free: 9.973 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 3.697e-06/0.4697, allocations: 3.938 kB / 0.613 GB, free: 9.969 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001241/0.4709, allocations: 0.629 MB / 0.6136 GB, free: 9.383 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.01e-05/0.471, allocations: 55.41 kB / 0.6137 GB, free: 9.316 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004114/0.4714, allocations: 298.7 kB / 0.614 GB, free: 9.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/0.4714, allocations: 25.7 kB / 0.614 GB, free: 9.059 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002006/0.4716, allocations: 236.2 kB / 0.6142 GB, free: 8.848 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.552e-05/0.4717, allocations: 89.41 kB / 0.6143 GB, free: 8.77 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.372e-05/0.4718, allocations: 3.938 kB / 0.6143 GB, free: 8.766 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.4719, allocations: 352.2 kB / 0.6146 GB, free: 8.43 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/0.4721, allocations: 64.12 kB / 0.6147 GB, free: 8.395 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000162/0.4722, allocations: 130 kB / 0.6148 GB, free: 8.277 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001666/0.4724, allocations: 87.97 kB / 0.6149 GB, free: 8.227 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.4724, allocations: 0 / 0.6149 GB, free: 8.227 MB / 410.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004858/0.4729, allocations: 290 kB / 0.6152 GB, free: 7.996 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002784/0.4732, allocations: 0.7016 MB / 0.6159 GB, free: 7.254 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.4732, allocations: 0 / 0.6159 GB, free: 7.254 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001504/0.4734, allocations: 20.84 kB / 0.6159 GB, free: 7.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003235/0.4737, allocations: 79.59 kB / 0.616 GB, free: 7.156 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001028/0.4747, allocations: 1.226 MB / 0.6172 GB, free: 5.855 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000233/0.475, allocations: 12.03 kB / 0.6172 GB, free: 5.844 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.519e-05/0.475, allocations: 8 kB / 0.6172 GB, free: 5.836 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.454e-06/0.475, allocations: 4 kB / 0.6172 GB, free: 5.832 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003729/0.4754, allocations: 216.9 kB / 0.6174 GB, free: 5.676 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.4754, allocations: 0 / 0.6174 GB, free: 5.676 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.581e-05/0.4755, allocations: 23.72 kB / 0.6174 GB, free: 5.652 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002641/0.4758, allocations: 67.16 kB / 0.6175 GB, free: 5.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008541/0.4767, allocations: 1.241 MB / 0.6187 GB, free: 4.273 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001848/0.4769, allocations: 8.156 kB / 0.6187 GB, free: 4.266 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.97e-05/0.4769, allocations: 8 kB / 0.6187 GB, free: 4.258 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (currentController.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001898/0.4771, allocations: 116 kB / 0.6188 GB, free: 4.141 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.031e-05/0.4772, allocations: 31.62 kB / 0.6188 GB, free: 4.109 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.199e-05/0.4773, allocations: 40.09 kB / 0.6189 GB, free: 4.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.4773, allocations: 7.906 kB / 0.6189 GB, free: 4.082 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.4773, allocations: 0 / 0.6189 GB, free: 4.082 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.4773, allocations: 4 kB / 0.6189 GB, free: 4.078 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00111/0.4784, allocations: 0.7223 MB / 0.6196 GB, free: 3.469 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.736e-06/0.4784, allocations: 3.938 kB / 0.6196 GB, free: 3.465 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002929/0.4787, allocations: 63.91 kB / 0.6197 GB, free: 3.402 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.569e-05/0.4788, allocations: 20.16 kB / 0.6197 GB, free: 3.383 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.389e-05/0.4789, allocations: 4 kB / 0.6197 GB, free: 3.379 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000875/0.4797, allocations: 1.222 MB / 0.6209 GB, free: 2.078 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.4798, allocations: 0 / 0.6209 GB, free: 2.078 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000566/0.4803, allocations: 456.8 kB / 0.6213 GB, free: 1.688 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.4804, allocations: 112.4 kB / 0.6214 GB, free: 1.562 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.534e-05/0.4805, allocations: 7.5 kB / 0.6214 GB, free: 1.559 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002304/0.4807, allocations: 19.98 kB / 0.6214 GB, free: 1.539 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.004e-05/0.4808, allocations: 11.98 kB / 0.6215 GB, free: 1.527 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.4808, allocations: 7.438 kB / 0.6215 GB, free: 1.523 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0003015/0.4811, allocations: 235.3 kB / 0.6217 GB, free: 1.344 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006059/0.4817, allocations: 132 kB / 0.6218 GB, free: 1.215 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcpm.inductor.i,dcpm.inertia.w,torqueLoad.phi,deadTime.y,currentController.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002994/0.482, allocations: 191.8 kB / 0.622 GB, free: 1.023 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009121/0.483, allocations: 0.5164 MB / 0.6225 GB, free: 0.5859 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.483, allocations: 0 / 0.6225 GB, free: 0.5859 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002676/0.4833, allocations: 198.8 kB / 0.6227 GB, free: 420 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004401/0.4837, allocations: 49.97 kB / 0.6227 GB, free: 388 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001767/0.4855, allocations: 0.7439 MB / 0.6235 GB, free: 15.66 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005163/0.486, allocations: 0.8767 MB / 0.6243 GB, free: 14.75 MB / 426.7 MB Notification: Performance of SimCode: time 2.71e-07/0.486, allocations: 4 kB / 0.6243 GB, free: 14.75 MB / 426.7 MB Notification: Performance of Templates: time 0.01202/0.4981, allocations: 5.192 MB / 0.6294 GB, free: 9.594 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)