Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.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) 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(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive") [: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.001555/0.001555, allocations: 202.4 kB / 8.541 MB, free: 1.746 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008298/0.0008299, allocations: 88.98 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.382e-06/6.412e-06, allocations: 0 / 343.1 MB, free: 8.684 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08452/0.08455, allocations: 51.48 MB / 394.6 MB, free: 5.164 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.23/0.3146, allocations: 113.1 MB / 0.4959 GB, free: 12.6 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001988/0.3148, allocations: 78.58 kB / 0.4959 GB, free: 12.56 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.1411/0.4559, allocations: 56.64 MB / 0.5513 GB, free: 8.793 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001915/0.4562, allocations: 60 kB / 0.5513 GB, free: 8.734 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.005018/0.4612, allocations: 2.373 MB / 0.5536 GB, free: 6.309 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.4612, allocations: 8.031 kB / 0.5536 GB, free: 6.301 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001358/0.4626, allocations: 372.3 kB / 0.554 GB, free: 5.934 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003118/0.4657, allocations: 1.52 MB / 0.5555 GB, free: 4.355 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.905e-05/0.4658, allocations: 84 kB / 0.5556 GB, free: 4.273 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004182/0.4663, allocations: 159.8 kB / 0.5557 GB, free: 4.117 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003207/0.4695, allocations: 1.365 MB / 0.557 GB, free: 2.746 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003935/0.4734, allocations: 1.975 MB / 0.559 GB, free: 0.6641 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.505e-05/0.4735, allocations: 7.938 kB / 0.559 GB, free: 0.6562 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000163/0.4737, allocations: 7.906 kB / 0.559 GB, free: 0.6484 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.804e-05/0.4737, allocations: 60 kB / 0.559 GB, free: 0.5898 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0136/0.4873, allocations: 10 MB / 0.5688 GB, free: 6.094 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001312/0.4887, allocations: 493 kB / 0.5693 GB, free: 5.605 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007267/0.4894, allocations: 427.7 kB / 0.5697 GB, free: 5.188 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.779e-05/0.4895, allocations: 8.781 kB / 0.5697 GB, free: 5.176 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.4895, allocations: 43.34 kB / 0.5697 GB, free: 5.125 MB / 442.7 MB Notification: Performance of pre-optimization done (n=83): time 2.534e-06/0.4895, allocations: 4 kB / 0.5697 GB, free: 5.121 MB / 442.7 MB Notification: Performance of matching and sorting (n=89): time 0.003267/0.4928, allocations: 1.949 MB / 0.5716 GB, free: 3.113 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/0.4929, allocations: 111.6 kB / 0.5718 GB, free: 2.977 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001601/0.4945, allocations: 1.096 MB / 0.5728 GB, free: 1.875 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.716e-05/0.4945, allocations: 25.7 kB / 0.5728 GB, free: 1.844 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006339/0.4952, allocations: 1.076 MB / 0.5739 GB, free: 0.75 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002427/0.4954, allocations: 323.3 kB / 0.5742 GB, free: 440 kB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.915e-05/0.4955, allocations: 0 / 0.5742 GB, free: 440 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.4956, allocations: 369.8 kB / 0.5746 GB, free: 64 kB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1048/0.6004, allocations: 321.6 kB / 0.5749 GB, free: 135.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006737/0.6011, allocations: 0.9985 MB / 0.5758 GB, free: 134.9 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006332/0.6018, allocations: 0.4986 MB / 0.5763 GB, free: 134.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.824e-06/0.6018, allocations: 3.969 kB / 0.5763 GB, free: 134.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=214) (initialization): time 0.001909/0.6037, allocations: 1.342 MB / 0.5776 GB, free: 134.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001229/0.6049, allocations: 9.319 MB / 0.5867 GB, free: 125.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.312e-05/0.605, allocations: 25.97 kB / 0.5868 GB, free: 125.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001703/0.6051, allocations: 56.42 kB / 0.5868 GB, free: 125.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/0.6064, allocations: 420.3 kB / 0.5872 GB, free: 125.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007461/0.6072, allocations: 1.276 MB / 0.5885 GB, free: 124.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/0.6083, allocations: 71.7 kB / 0.5885 GB, free: 124.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.677e-05/0.6084, allocations: 83.84 kB / 0.5886 GB, free: 124.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.382e-06/0.6084, allocations: 5.156 kB / 0.5886 GB, free: 124.1 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001502/0.6099, allocations: 1.132 MB / 0.5897 GB, free: 124.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.789e-05/0.6099, allocations: 25.34 kB / 0.5897 GB, free: 124.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.393e-05/0.61, allocations: 52.89 kB / 0.5898 GB, free: 124.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/0.6112, allocations: 401.9 kB / 0.5902 GB, free: 124.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005829/0.6118, allocations: 1.27 MB / 0.5914 GB, free: 122.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008985/0.6127, allocations: 48.45 kB / 0.5915 GB, free: 122.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.382e-05/0.6128, allocations: 80.44 kB / 0.5915 GB, free: 122.9 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 106 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep.y,dcdcInverter2.idealDcDc.powerController.local_reset,dcdcInverter1.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (213): * Single equations (assignments): 212 * 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.0002039/0.613, allocations: 174.1 kB / 0.5917 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001732/0.6132, allocations: 163.8 kB / 0.5919 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001158/0.6143, allocations: 0.7286 MB / 0.5926 GB, free: 122.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.6144, allocations: 7.219 kB / 0.5926 GB, free: 122.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.6144, allocations: 2.625 kB / 0.5926 GB, free: 122.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/0.6144, allocations: 11.47 kB / 0.5926 GB, free: 122.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002997/0.6174, allocations: 2.37 MB / 0.5949 GB, free: 122.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.6174, allocations: 5.938 kB / 0.5949 GB, free: 122.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008718/0.6183, allocations: 200.2 kB / 0.5951 GB, free: 122.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.257e-05/0.6184, allocations: 23.89 kB / 0.5951 GB, free: 122.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.912e-05/0.6184, allocations: 14.95 kB / 0.5951 GB, free: 122.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005802/0.619, allocations: 1.243 MB / 0.5964 GB, free: 121.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.619, allocations: 8.828 kB / 0.5964 GB, free: 121.1 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001308/0.6204, allocations: 1.45 MB / 0.5978 GB, free: 120.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003469/0.6207, allocations: 302.9 kB / 0.5981 GB, free: 120.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001982/0.6209, allocations: 13.66 kB / 0.5981 GB, free: 120.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007191/0.6216, allocations: 54.8 kB / 0.5981 GB, free: 120.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.6218, allocations: 60.22 kB / 0.5982 GB, free: 120.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.653e-05/0.6218, allocations: 28.83 kB / 0.5982 GB, free: 120.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0008454/0.6227, allocations: 0.7832 MB / 0.599 GB, free: 120.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001889/0.6246, allocations: 0.6895 MB / 0.5997 GB, free: 120.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 16 (dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.la.i,coupling.flange_a.phi,dcdcInverter1.vDCFilter.y,dcdcInverter1.iMotFilter.y,dcdcInverter1.vMotFilter.y,dcdcInverter1.iDCFilter.y,dcdcInverter1.idealDcDc.deadTime.y,dcdcInverter1.idealDcDc.powerController.y,dcdcInverter2.vDCFilter.y,dcdcInverter2.iMotFilter.y,dcdcInverter2.vMotFilter.y,dcdcInverter2.iDCFilter.y,dcdcInverter2.idealDcDc.deadTime.y,dcdcInverter2.idealDcDc.powerController.y) * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 87 * 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.0003355/0.6249, allocations: 290.4 kB / 0.5999 GB, free: 120.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002056/0.627, allocations: 1.771 MB / 0.6017 GB, free: 119.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.627, allocations: 0 / 0.6017 GB, free: 119.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005062/0.6275, allocations: 454.7 kB / 0.6021 GB, free: 119.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001317/0.6288, allocations: 349.5 kB / 0.6024 GB, free: 119.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004705/0.6335, allocations: 2.941 MB / 0.6053 GB, free: 118.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00109/0.6346, allocations: 1.641 MB / 0.6069 GB, free: 117.9 MB / 442.7 MB Notification: Performance of SimCode: time 8.21e-07/0.6346, allocations: 0 / 0.6069 GB, free: 117.9 MB / 442.7 MB Notification: Performance of Templates: time 0.03496/0.6696, allocations: 23.01 MB / 0.6294 GB, free: 116.6 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Drive.pipe 2>&1)