Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.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_SpeedControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled") [: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.001733/0.001733, allocations: 200.1 kB / 8.536 MB, free: 1.836 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 225.5 MB / 234.4 MB, free: 3.422 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008803/0.0008803, allocations: 98.89 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.178/0.178, allocations: 45.15 MB / 383.3 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.713e-06/6.723e-06, allocations: 0 / 452.6 MB, free: 76.22 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.1286, allocations: 63.24 MB / 0.5038 GB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3437/0.4723, allocations: 97.65 MB / 0.5991 GB, free: 5.375 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.4726, allocations: 73.16 kB / 0.5992 GB, free: 5.34 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.0358/0.5084, allocations: 13.23 MB / 0.6121 GB, free: 10.58 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.121e-05/0.5085, allocations: 20 kB / 0.6121 GB, free: 10.56 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001703/0.5103, allocations: 0.8402 MB / 0.613 GB, free: 9.719 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.5103, allocations: 8.906 kB / 0.613 GB, free: 9.711 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002322/0.5106, allocations: 86.97 kB / 0.6131 GB, free: 9.625 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008855/0.5115, allocations: 487.1 kB / 0.6135 GB, free: 9.188 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.238e-05/0.5115, allocations: 20 kB / 0.6135 GB, free: 9.168 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.756e-05/0.5116, allocations: 39.91 kB / 0.6136 GB, free: 9.129 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007127/0.5123, allocations: 331.6 kB / 0.6139 GB, free: 8.934 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008038/0.5131, allocations: 473.3 kB / 0.6143 GB, free: 8.574 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.574e-05/0.5132, allocations: 3.938 kB / 0.6144 GB, free: 8.57 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.282e-05/0.5132, allocations: 3.938 kB / 0.6144 GB, free: 8.566 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.014e-05/0.5132, allocations: 19.98 kB / 0.6144 GB, free: 8.547 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003509/0.5168, allocations: 2.063 MB / 0.6164 GB, free: 6.824 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006715/0.5175, allocations: 270.5 kB / 0.6166 GB, free: 6.613 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000287/0.5178, allocations: 157.1 kB / 0.6168 GB, free: 6.512 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.134e-05/0.5178, allocations: 11.98 kB / 0.6168 GB, free: 6.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.5179, allocations: 37.97 kB / 0.6168 GB, free: 6.457 MB / 410.7 MB Notification: Performance of pre-optimization done (n=32): time 2.595e-06/0.5179, allocations: 0 / 0.6168 GB, free: 6.457 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.001512/0.5194, allocations: 0.7683 MB / 0.6176 GB, free: 5.762 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.5194, allocations: 55.41 kB / 0.6176 GB, free: 5.695 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005331/0.52, allocations: 387.7 kB / 0.618 GB, free: 5.398 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.396e-05/0.52, allocations: 29.7 kB / 0.618 GB, free: 5.363 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002021/0.5202, allocations: 287.9 kB / 0.6183 GB, free: 5.105 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.426e-05/0.5203, allocations: 110.9 kB / 0.6184 GB, free: 5.012 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.559e-05/0.5204, allocations: 0 / 0.6184 GB, free: 5.012 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001927/0.5206, allocations: 362.7 kB / 0.6188 GB, free: 4.668 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001888/0.5208, allocations: 99.8 kB / 0.6189 GB, free: 4.609 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002289/0.521, allocations: 180.5 kB / 0.619 GB, free: 4.453 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002297/0.5212, allocations: 121.3 kB / 0.6192 GB, free: 4.379 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.5212, allocations: 4 kB / 0.6192 GB, free: 4.375 MB / 410.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007231/0.522, allocations: 373.3 kB / 0.6195 GB, free: 4.086 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003644/0.5223, allocations: 0.8653 MB / 0.6204 GB, free: 3.168 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.5224, allocations: 7.906 kB / 0.6204 GB, free: 3.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001655/0.5225, allocations: 28.97 kB / 0.6204 GB, free: 3.133 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000488/0.523, allocations: 110.8 kB / 0.6205 GB, free: 3.027 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001162/0.5242, allocations: 1.233 MB / 0.6217 GB, free: 1.715 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003566/0.5246, allocations: 28.05 kB / 0.6217 GB, free: 1.688 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.95e-05/0.5246, allocations: 19.06 kB / 0.6217 GB, free: 1.672 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.676e-06/0.5246, allocations: 4 kB / 0.6218 GB, free: 1.668 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005165/0.5252, allocations: 287.6 kB / 0.622 GB, free: 1.465 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.5252, allocations: 4 kB / 0.622 GB, free: 1.461 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.503e-05/0.5253, allocations: 24.03 kB / 0.6221 GB, free: 1.438 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003849/0.5257, allocations: 99.08 kB / 0.6221 GB, free: 1.344 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001111/0.5268, allocations: 1.229 MB / 0.6233 GB, free: 40 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003092/0.5271, allocations: 4 kB / 0.6234 GB, free: 36 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.676e-05/0.5272, allocations: 19.05 kB / 0.6234 GB, free: 20 kB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (speedController.integrator.local_reset,currentController.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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.0002146/0.5274, allocations: 121.5 kB / 0.6235 GB, free: 15.89 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.5275, allocations: 55.28 kB / 0.6235 GB, free: 15.84 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000134/0.5277, allocations: 48.73 kB / 0.6236 GB, free: 15.82 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.5277, allocations: 4.062 kB / 0.6236 GB, free: 15.81 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.054e-06/0.5277, allocations: 4 kB / 0.6236 GB, free: 15.81 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.5277, allocations: 3.984 kB / 0.6236 GB, free: 15.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001641/0.5293, allocations: 0.8976 MB / 0.6245 GB, free: 15.08 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.5294, allocations: 7.938 kB / 0.6245 GB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004035/0.5298, allocations: 74.14 kB / 0.6246 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.42e-05/0.5299, allocations: 24.11 kB / 0.6246 GB, free: 14.98 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.53e-05/0.5299, allocations: 7.688 kB / 0.6246 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001001/0.5309, allocations: 1.228 MB / 0.6258 GB, free: 13.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.531, allocations: 3.984 kB / 0.6258 GB, free: 13.66 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007612/0.5317, allocations: 0.5409 MB / 0.6263 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001461/0.5319, allocations: 131.5 kB / 0.6264 GB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.602e-05/0.532, allocations: 7.938 kB / 0.6264 GB, free: 13.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000349/0.5323, allocations: 27.98 kB / 0.6265 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.884e-05/0.5324, allocations: 15.97 kB / 0.6265 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-05/0.5324, allocations: 11.94 kB / 0.6265 GB, free: 13.01 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0004223/0.5328, allocations: 299.8 kB / 0.6268 GB, free: 12.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008133/0.5337, allocations: 164 kB / 0.6269 GB, free: 12.64 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (dcpm.inductor.i,dcpm.inertia.w,inertiaLoad.phi,deadTime.y,currentController.integrator.y,preFilter.y,speedController.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 31 * 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.0003423/0.534, allocations: 185.3 kB / 0.6271 GB, free: 12.46 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001151/0.5352, allocations: 0.6277 MB / 0.6277 GB, free: 11.95 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.5352, allocations: 0 / 0.6277 GB, free: 11.95 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003251/0.5355, allocations: 243.3 kB / 0.628 GB, free: 11.74 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005632/0.5361, allocations: 80.91 kB / 0.628 GB, free: 11.69 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002186/0.5383, allocations: 0.9252 MB / 0.6289 GB, free: 10.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007839/0.5391, allocations: 0.9486 MB / 0.6299 GB, free: 9.828 MB / 426.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5391, allocations: 0 / 0.6299 GB, free: 9.828 MB / 426.7 MB Notification: Performance of Templates: time 0.01565/0.5548, allocations: 6.851 MB / 0.6366 GB, free: 3.012 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)